def test_index_positive_err(self): s = SortedSet([1,3,8,9]) with self.assertRaises(ValueError): s.index(2)
def test_index_positive_err(self): s = SortedSet([1, 3, 8, 9]) with self.assertRaises(ValueError): s.index(2)
def test_index_positive(self): s = SortedSet([1,3,8,9]) self.assertEqual(s.index(1),0)
def test_index_positive(self): s = SortedSet([1, 3, 8, 9]) self.assertEqual(s.index(1), 0)