| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This PR adds a few more type-related tests.
- boolean
Testing of an object is a boolean required 2 tests.
- false
Make this similar to testing none value
- true
Make this similar to testing none value
- integer
The existing 'number' test does not make a distinction between
integer, float or even booleans
- float
The existing 'number' test does not make a distinction between
integer, float or even booleans
|
|
|
|
|
|
| |
add tests and aliases for all comparison operators
adjust docs to prefer short names for compare tests
closes #664
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Remove py.test from setup.py install_requires
Rename testsuite folder to tests.
|
|
|
|
|
| |
--HG--
branch : trunk
|
|
|
|
|
| |
--HG--
branch : trunk
|
|
|
|
|
| |
--HG--
branch : trunk
|
|
|
|
|
| |
--HG--
branch : trunk
|
|
|
|
|
| |
--HG--
branch : trunk
|
|
|
|
|
| |
--HG--
branch : trunk
|
|
|
|
|
| |
--HG--
branch : trunk
|
|
|
|
|
| |
--HG--
branch : trunk
|
|
|
|
|
| |
--HG--
branch : trunk
|
|
|
|
|
| |
--HG--
branch : trunk
|
|
--HG--
branch : trunk
|