diff --git a/docs/writing-tests/assertions.jade b/docs/writing-tests/assertions.jade index d6f705b..b7b3373 100644 --- a/docs/writing-tests/assertions.jade +++ b/docs/writing-tests/assertions.jade @@ -37,6 +37,54 @@ block docs-content assert 1 not_equal_to 0 ``` + section + :marked + ### is_positive + + Checks an integer to ensure that it is positive, and fails the test if it is not. + + feature.bump + :marked + ```zunit + assert 1 is_positive + ``` + + section + :marked + ### is_negative + + Checks an integer to ensure that it is negative, and fails the test if it is not. + + feature.bump + :marked + ```zunit + assert -1 is_negative + ``` + + section + :marked + ### is_greater_than + + Compares two integers to ensure one is greater, and fails the test if it is not. + + feature.bump + :marked + ```zunit + assert 2 is_greater_than 1 + ``` + + section + :marked + ### is_less_than + + Compares two integers to ensure one is lesser, and fails the test if it is not. + + feature.bump + :marked + ```zunit + assert 1 is_less_than 2 + ``` + section :marked ### same_as