Exemple #1
0
 def test_normal(self):
     question = ['"3"', '"-2"']
     assert -2 == answer(question)
Exemple #2
0
 def test_double_duplication(self):
     question = ['"7"', '"7"', '"5"', '"5"', '"4"', '"2"']
     assert 5 == answer(question)
Exemple #3
0
 def test_full_duplication(self):
     question = ['"4"', '"4"', '"4"']
     assert -1 == answer(question)
Exemple #4
0
 def test_blank_array(self):
     assert -1 == answer([])
Exemple #5
0
 def test_some_duplication(self):
     question = ['"5"', '"5"', '"4"', '"2"']
     assert 4 == answer(question)