leo/tests/parser/statement/assert.leo
d0cd 48a1f0590b
Rename console.assert* to assert*. (#2205)
* Add assert statements to AST

* Add support in passes

* Add parser support

* Add tyc support

* Add support for assert statements in the remaining passes

* Fix examples, tests, and regen expectations

* Fmt

* Regen expectations
2022-12-06 21:56:48 -08:00

13 lines
143 B
Plaintext

/*
namespace: ParseStatement
expectation: Pass
*/
assert_eq(x, y);
assert_eq(Foo { x: x }, Foo { x: y });
assert_neq(x, y);
assert(false);