console assert tests

This commit is contained in:
gluaxspeed 2021-02-11 10:46:20 -05:00
parent 9812c76e1f
commit cedcc6e1d1
2 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,4 @@
function main (x: [i16; 1]) { function main (x: [i16; 1]) {
console.log("{}", x); console.log("{}", x);
console.assert(x[0] == 0);
} }

View File

@ -3,4 +3,7 @@ function main(x: [i16; (2, 2, 3)]){
let y: [i16; (2, 2, 3)] = [0i16; (2, 2, 3)]; let y: [i16; (2, 2, 3)] = [0i16; (2, 2, 3)];
console.log("y: {}", y); console.log("y: {}", y);
console.assert(x[0][0][0] == y[0][0][0]);
console.assert(x[1][1][2] == y[1][1][2]);
} }