Skip to content

Commit

Permalink
fix sequence precedence test and add tests for multi variable declara…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
y21 committed Dec 28, 2023
1 parent 97bf6cc commit b008b8a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/dash_vm/src/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,12 @@ simple_test!(
default: throw 'FAIL';
}
let v = 1, 2, 3;
let v = (1, 2, 3);
let x1 = 1, x2 = 2, x3;
assert(v === 3);
assert(x1 == 1);
assert(x2 == 2);
assert(x3 === undefined);
assert((() => 1+2)() === 3);
"#,
Value::undefined()
Expand Down

0 comments on commit b008b8a

Please sign in to comment.