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