Commits

astaric committed 4f1ce0f

Made this test more robust.

Comments (0)

Files changed (2)

orange/doc/reference/findnearest.py

 nn = nnc(data, 0, did)
 
 print "*** Reference example: ", data[0]
-for ex in nn(data[0], 5):
+for ex in sorted(nn(data[0], 5)):
     print ex

testing/regressionTests/results/orange/reference/findnearest.py.txt

 *** Reference example:  ['young', 'myope', 'no', 'reduced', 'none']
+['pre-presbyopic', 'myope', 'no', 'reduced', 'none'], {-42:1.00}
+['young', 'hypermetrope', 'no', 'reduced', 'none'], {-42:1.00}
+['young', 'myope', 'no', 'normal', 'soft'], {-42:1.00}
 ['young', 'myope', 'no', 'reduced', 'none'], {-42:0.00}
 ['young', 'myope', 'yes', 'reduced', 'none'], {-42:1.00}
-['presbyopic', 'myope', 'no', 'reduced', 'none'], {-42:1.00}
-['young', 'hypermetrope', 'no', 'reduced', 'none'], {-42:1.00}
-['young', 'myope', 'no', 'normal', 'soft'], {-42:1.00}