mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-16 07:14:07 +10:00
I've brought the tests up to scratch, except for compounds im the parser, because I'm too damn tired to do that over SSH. It looks like collections are right-recursive, whixh was unintended but still works just fine. I've also added the '--verbose' flag to the repl to control the debugging output. Several obscure bugs have been fixed, and comments have been tweaked. Mustfail tests are still needed, but that's a low priority. See #142. Fixed #151
15 lines
317 B
Plaintext
15 lines
317 B
Plaintext
//NOTE: these tests are all passing - failing tests can be found under the 'mustfails' directory
|
|
|
|
//basic assert statement
|
|
assert true;
|
|
|
|
//assert on a string (tests for it's truthiness)
|
|
assert "Hello world";
|
|
|
|
//assert on a condition
|
|
assert 1 < 2;
|
|
|
|
//assert with an optional message
|
|
assert true, "Assertion message";
|
|
|