mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 23:12:19 +00:00
11 lines
201 B
TypeScript
11 lines
201 B
TypeScript
assert(true);
|
|
assert(1);
|
|
assert(1 > 0);
|
|
assert(0.5);
|
|
assert(0.5 > 0.4);
|
|
assert(0x100000000);
|
|
assert(0x100000000 > 1);
|
|
|
|
// can be used as an expression
|
|
if (!assert(true, "must be true")) unreachable();
|