From fff38e30d29637f2ab7259e07e01b8b9248c3e21 Mon Sep 17 00:00:00 2001 From: rvcas Date: Tue, 27 Sep 2022 12:19:46 -0400 Subject: [PATCH] test: add more stuff to get successfully parsing --- crates/lang/src/parser.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/crates/lang/src/parser.rs b/crates/lang/src/parser.rs index c2c21f2d..be7be489 100644 --- a/crates/lang/src/parser.rs +++ b/crates/lang/src/parser.rs @@ -574,6 +574,19 @@ mod tests { pub fn add_one(a) { a + 1 } + + pub fn thing(a: Int) -> List(Int) { + let wow = + [1, 2, 3] + |> list.map(fn(x) { x + a }) + |> list.filter(fn(x: Int) -> Bool { x % 2 == 0 }) + + let who = + wow |> list.map(fn(x) { x + a }) + + who + } + } "#; let len = code.chars().count();