コード例 #1
0
ファイル: test_sorted_set.py プロジェクト: yzchs7/segpy
 def test_index_negative(self):
     s = SortedFrozenSet([1, 5, 8, 9])
     with pytest.raises(ValueError):
         s.index(15)
コード例 #2
0
ファイル: test_sorted_set.py プロジェクト: abingham/segpy
 def test_index_negative(self):
     s = SortedFrozenSet([1, 5, 8, 9])
     with pytest.raises(ValueError):
         s.index(15)
コード例 #3
0
ファイル: test_sorted_set.py プロジェクト: yzchs7/segpy
 def test_index_positive(self):
     s = SortedFrozenSet([1, 5, 8, 9])
     assert s.index(8) == 2
コード例 #4
0
ファイル: test_sorted_set.py プロジェクト: abingham/segpy
 def test_index_positive(self):
     s = SortedFrozenSet([1, 5, 8, 9])
     assert s.index(8) == 2