Changeset 9556:4f1ce0ff3228 in orange


Ignore:
Timestamp:
01/20/12 13:55:21 (2 years ago)
Author:
anze <anze.staric@…>
Branch:
default
Convert:
51799f607f8b45d92c85d0d7dfc8ea10f5802e9f
Message:

Made this test more robust.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orange/doc/reference/findnearest.py

    r526 r9556  
    2020 
    2121print "*** Reference example: ", data[0] 
    22 for ex in nn(data[0], 5): 
     22for ex in sorted(nn(data[0], 5)): 
    2323    print ex 
  • testing/regressionTests/results/orange/reference/findnearest.py.txt

    r9300 r9556  
    11*** Reference example:  ['young', 'myope', 'no', 'reduced', 'none'] 
     2['pre-presbyopic', 'myope', 'no', 'reduced', 'none'], {-42:1.00} 
     3['young', 'hypermetrope', 'no', 'reduced', 'none'], {-42:1.00} 
     4['young', 'myope', 'no', 'normal', 'soft'], {-42:1.00} 
    25['young', 'myope', 'no', 'reduced', 'none'], {-42:0.00} 
    36['young', 'myope', 'yes', 'reduced', 'none'], {-42:1.00} 
    4 ['presbyopic', 'myope', 'no', 'reduced', 'none'], {-42:1.00} 
    5 ['young', 'hypermetrope', 'no', 'reduced', 'none'], {-42:1.00} 
    6 ['young', 'myope', 'no', 'normal', 'soft'], {-42:1.00} 
Note: See TracChangeset for help on using the changeset viewer.