mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-25 18:42:26 +03:00
console assert tests
This commit is contained in:
parent
9812c76e1f
commit
cedcc6e1d1
@ -1,3 +1,4 @@
|
||||
function main (x: [i16; 1]) {
|
||||
console.log("{}", x);
|
||||
console.assert(x[0] == 0);
|
||||
}
|
@ -3,4 +3,7 @@ function main(x: [i16; (2, 2, 3)]){
|
||||
|
||||
let y: [i16; (2, 2, 3)] = [0i16; (2, 2, 3)];
|
||||
console.log("y: {}", y);
|
||||
|
||||
console.assert(x[0][0][0] == y[0][0][0]);
|
||||
console.assert(x[1][1][2] == y[1][1][2]);
|
||||
}
|
Loading…
Reference in New Issue
Block a user