Ticket Created
over 3 years ago

WERETECH-12587

Test methods is(), isnt() and ok()

I think it is nice to have some easier, less typing test method function names:

* Test.assertEqualMessage() as is()
* Test.assertNotEqualMessage() as isnt()
* Test.assertMessage() as ok()

This would allow way less typing, eg:

Test.is(needle, haystack, "Needle found in the haystack");
Test.isnt(needle, haystack, "Nope");
Test.ok(error instanceof Lang.ValueOutOfBoundsException, "Correct error is thrown");

Parents
  • Perhaps additionally, you could have isa(), which does this:

    Test.instanceOf(error, Lang.ValueOutOfBoundsException, "Correct error is thrown");
    // of the shorter version:
    Test.isa(error, Lang.ValueOutOfBoundsException, "Correct error is thrown");

Comment
  • Perhaps additionally, you could have isa(), which does this:

    Test.instanceOf(error, Lang.ValueOutOfBoundsException, "Correct error is thrown");
    // of the shorter version:
    Test.isa(error, Lang.ValueOutOfBoundsException, "Correct error is thrown");

Children
No Data