Closed littledivy closed 4 years ago
The test runner fulfills basic requirement for unit testing. Utilities like assert, etc should be a part of the std.
assert
USAGE:
Elsa.tests({ "adds numbers": function () { eq(6, add(2, 4)); eq(6.6, add(2.6, 4)); }, "subtracts numbers": function () { eq(-2, add(2, -4)); }, "add fail": function () { eq(2, add(2, 1)); }, });
The test runner fulfills basic requirement for unit testing. Utilities like
assert
, etc should be a part of the std.USAGE: