about summary refs log tree commit diff stats
path: root/test/core/interval.py
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2017-02-22 16:40:43 +0100
committerGitHub <noreply@github.com>2017-02-22 16:40:43 +0100
commit464519ca327b331c6fcc8c31408145f1192f1399 (patch)
tree8aebcfe67057d57af0208608edc6a88c3a85dd3d /test/core/interval.py
parent688d21da608c32da84e093316ab32a4fa7fc51c8 (diff)
parentf9292fe7960cbdd6dbbd51b61966f3e43f3fff13 (diff)
downloadmiasm-464519ca327b331c6fcc8c31408145f1192f1399.tar.gz
miasm-464519ca327b331c6fcc8c31408145f1192f1399.zip
Merge pull request #496 from commial/feature/expr_range
Feature/expr range
Diffstat (limited to 'test/core/interval.py')
-rwxr-xr-xtest/core/interval.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/core/interval.py b/test/core/interval.py
index ab18e567..97d45a39 100755
--- a/test/core/interval.py
+++ b/test/core/interval.py
@@ -90,6 +90,10 @@ assert(i14 & i15 == i14)
 assert(i15 & i14 == i14)
 assert(i14 & i16 == interval([(3, 5), (7, 8)]))
 
+assert(i5.length == 5)
+assert(i6.length == 7)
+assert((i1 - i1).length == 0)
+
 x1 = [(7, 87), (76, 143), (94, 129), (79, 89), (46, 100)]
 assert(interval(x1) == interval([(7, 143)]))
 x2 = [(11, 16), (35, 74), (18, 114), (91, 188), (3, 75)]