Add test for greater/less than (#624)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
It can be helpful to have a test for values that are greater or less than another value, especially when looping over lists and using `select()` or `selectattr()` filters. This patch adds tests that allow a developer to check if a value is greater or less than another value. For example, if I have a list of vehicles and I want to find the motorcycles: vehicles | selectattr('wheels', 'lessthan', 3) Or, if I want to find large trucks: vehicles | selectattr('wheels', 'greaterthan', 4) Tests are included.
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+23 added−1 removed
- tests:+10 added−0 removed
- other:+13 added−1 removed