to be greater than
- <string> [not] to be (greater than|above) <string>
Asserts that a string is greater than another string using the >
operator.
expect('b', 'to be greater than', 'a');expect('b', 'to be above', 'a');
In case of a failing expectation you get the following output:
expect('a', 'to be greater than', 'a');
expected 'a' to be greater than 'a'
This assertion can be negated using the not
flag:
expect('a', 'not to be greater than', 'a');expect('a', 'not to be above', 'a');
In case of a failing expectation you get the following output:
expect('b', 'not to be above', 'a');
expected 'b' not to be above 'a'