diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_EeVal.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_EeVal.py b/test/test_EeVal.py new file mode 100644 index 0000000..c4254fb --- /dev/null +++ b/test/test_EeVal.py @@ -0,0 +1,9 @@ +from ee import EeVal + +def test_ordering(): + p100 = EeVal('100 p') + n100 = EeVal('100 n') + u1 = EeVal('1u') + assert n100 > p100 + assert p100 < n100 + assert [p100, n100, u1] == sorted([p100, u1, n100]) |