def test_complex_case_02(self): self.assertEqual( meistergeist.main(10, '1122574103', 1, ['1020555407']), meistergeist.LOSS)
def test_fail_on_one_guess_fourth_digit_wrong(self): self.assertEqual(meistergeist.main(4, '5542', 1, ['5540']), meistergeist.LOSS)
def test_fail_on_wrong_length(self): self.assertEqual(meistergeist.main(1, '5', 1, ['5542']), meistergeist.LOSS)
def test_succeed_on_one_guess(self): self.assertEqual(meistergeist.main(4, '5542', 1, ['5542']), meistergeist.WIN)
def test_correct_first_guess(self): self.assertEqual( meistergeist.main(4, '1234', 12, [ '1234', '5678', '9090', '8787', '1111', '2222', '4958', '1354', '9433', '2831', '8754', '3289' ]), meistergeist.WIN)