mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 15:12:12 +00:00
12 lines
203 B
TypeScript
12 lines
203 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();
|