def test_inorder_list(self): count = InversionCounter.count_inversions(self.path + "SortTest3.txt") self.assertEqual(0, count)
def test_backwards_list(self): count = InversionCounter.count_inversions(self.path + "SortTest4.txt") self.assertEqual(15, count)
def test_single_elt_list(self): count = InversionCounter.count_inversions(self.path + "SortTest2.txt") self.assertEqual(0, count)