Browse Source

test: add ignored nested array test

github-actions
Garrit Franke 1 year ago
parent
commit
f593bf1fc3
  1. 21
      src/parser/tests.rs

21
src/parser/tests.rs

@ -674,4 +674,23 @@ fn test_nested_for_loop() {
let tokens = tokenize(raw);
let tree = parse(tokens, Some(raw.to_string()));
assert!(tree.is_ok());
}
}
#[test]
#[ignore]
fn test_nested_array() {
let raw = "
fn main() {
let arr = [[11, 12, 13], [21, 22, 23], [31, 32, 33]]
for i in arr {
for j in arr {
println(j)
}
}
}
";
let tokens = tokenize(raw);
let tree = parse(tokens, Some(raw.to_string()));
assert!(tree.is_ok());
}

Loading…
Cancel
Save