test: add more stuff to get successfully parsing

This commit is contained in:
rvcas 2022-09-27 12:19:46 -04:00 committed by Lucas
parent 8e3b32fe2c
commit fff38e30d2
1 changed files with 13 additions and 0 deletions

View File

@ -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();