Browse Source

Improve test coverage

tags/nilmdb-2.0.0
Jim Paris 4 years ago
parent
commit
2764283f59
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      tests/test_interval.py

+ 1
- 0
tests/test_interval.py View File

@@ -63,6 +63,7 @@ class TestInterval:
i = [ UtilsInterval(1,2), UtilsInterval(2,3), UtilsInterval(4,5) ]
eq_(list(nilmdb.utils.interval.optimize(i)),
[ UtilsInterval(1,3), UtilsInterval(4,5) ])
eq_(list(nilmdb.utils.interval.optimize([])), [])
eq_(UtilsInterval(1234567890123456, 1234567890654321).human_string(),
"[ Fri, 13 Feb 2009 18:31:30.123456 -0500 -> " +
"Fri, 13 Feb 2009 18:31:30.654321 -0500 ]")


Loading…
Cancel
Save