aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2017-09-25 14:07:34 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2017-09-25 14:07:34 +0200
commit2daf526b84a1e746a222668f02578a2fdba0e992 (patch)
tree2b7e3a1e8fe21ec5809662810bbdd36ac4ebc426 /test
parent394573a3605ee7ddfe9659c0f91a994436ece91d (diff)
downloadee-python-2daf526b84a1e746a222668f02578a2fdba0e992.tar.gz
ee-python-2daf526b84a1e746a222668f02578a2fdba0e992.tar.bz2
ee-python-2daf526b84a1e746a222668f02578a2fdba0e992.tar.xz
ee-python-2daf526b84a1e746a222668f02578a2fdba0e992.zip
o Better implementation of EeVal's __eq__ and __lt__.
Diffstat (limited to 'test')
-rw-r--r--test/test_EeVal.py9
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])