Ignore:
Timestamp:
08/02/13 16:08:08 (9 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixed 'above_threshold' test condition.

It now tests True for scores equal to threshold (as documented).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/testing/unit/tests/test_feature_selection.py

    r10708 r11646  
    4141    def test_above_threashold(self): 
    4242        threshold = self.scores[len(self.scores) / 2][1] 
    43         above = [item[0] for item in self.scores if item[1] > threshold] 
     43        above = [item[0] for item in self.scores if item[1] >= threshold] 
    4444         
    4545        self.assertEqual(above,  
Note: See TracChangeset for help on using the changeset viewer.