1. biolab
  2. Untitled project
  3. orange

Commits

astaric  committed 4f1ce0f

Made this test more robust.

  • Participants
  • Parent commits 0794875
  • Branches default

Comments (0)

Files changed (2)

File orange/doc/reference/findnearest.py

View file
 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

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

View file
 *** 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}