Skip to content

Commit

Permalink
Add docs for new integer assertion methods
Browse files Browse the repository at this point in the history
  • Loading branch information
molovo committed Jul 10, 2017
1 parent b3bc73a commit 65b9594
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions docs/writing-tests/assertions.jade
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 65b9594

Please sign in to comment.