コード例 #1
0
 def test_delete_at_should_return_false_when_guess_not_present(self):
     m = Marker("")
     assert not m.delete_first("5", list("1234"))
コード例 #2
0
 def test_delete_at_should_return_true_when_guess_present(self):
     m = Marker("")
     assert m.delete_first("3", list("1234"))
コード例 #3
0
 def test_delete_at_should_delete_when_guess_present(self):
     m = Marker("")
     lst = list("1234")
     m.delete_first("3", lst)
     assert list("124") == lst