Files
Toy/tests/scripts/test_keyword_assert.toy
T

15 lines
338 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";
//TODO: add mustfails