diff tests/test_bisect.py @ 14:27925261c137

fix broken tests including an aggregious case where we add ourselves as a neighbor to ourself
author Jeff Hammel <k0scist@gmail.com>
date Sun, 25 Jun 2017 14:29:18 -0700
parents e3d6919130ca
children
line wrap: on
line diff
--- a/tests/test_bisect.py	Sun Jun 25 14:04:49 2017 -0700
+++ b/tests/test_bisect.py	Sun Jun 25 14:29:18 2017 -0700
@@ -25,6 +25,8 @@
             assert len(_distances) == k
             ordered = [value[-1] for value in _distances]
             assert sorted(ordered) == ordered
+            keys = [value[0] for value in _distances]
+            assert len(set(keys)) == len(_distances)
 
 
 if __name__ == '__main__':