Skip to content

Commit ebe143c

Browse files
committed
chore(tests): add basic mdim usage tests
1 parent 11a809e commit ebe143c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/by-util/test_awk.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,3 +454,11 @@ fn array_fn_passing() {
454454
"function f(x, y) { print isarray(x); x[2]++ } BEGIN { a[2] = 1; f(a); f(a); print a[2]; }",
455455
).succeeds().stdout_only("1\n1\n3\n");
456456
}
457+
458+
#[test]
459+
fn mdim_array_basic() {
460+
ucmd()
461+
.arg(r#"BEGIN { print a[1,4][1,"foo"][2,2,1] = 1; print a[1,4][1,"foo"][2,2,1] }"#)
462+
.succeeds()
463+
.stdout_only("1\n1\n");
464+
}

0 commit comments

Comments
 (0)