| Total Complexity | 3 |
| Total Lines | 10 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | # coding: utf8 |
||
| 13 | class UtilitiesTestCase(unittest.TestCase): |
||
| 14 | def test_nearest_before_first(self): |
||
| 15 | self.assertEqual(GanttChart._GanttChart__nearest(2, [10, 20, 30]), 10) |
||
| 16 | |||
| 17 | def test_nearest_after_last(self): |
||
| 18 | self.assertEqual(GanttChart._GanttChart__nearest(35, [10, 20, 30]), 30) |
||
| 19 | |||
| 20 | def test_nearest_in_the_middle(self): |
||
| 21 | self.assertEqual(GanttChart._GanttChart__nearest(18, [10, 20, 30]), 20) |
||
| 22 | self.assertEqual(GanttChart._GanttChart__nearest(22, [10, 20, 30]), 20) |
||
| 23 | |||
| 36 |