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