Example #1
0
File: tests.py Project: elcolie/muy
 def test_normal(self):
     question = ['"3"', '"-2"']
     assert -2 == answer(question)
Example #2
0
File: tests.py Project: elcolie/muy
 def test_double_duplication(self):
     question = ['"7"', '"7"', '"5"', '"5"', '"4"', '"2"']
     assert 5 == answer(question)
Example #3
0
File: tests.py Project: elcolie/muy
 def test_full_duplication(self):
     question = ['"4"', '"4"', '"4"']
     assert -1 == answer(question)
Example #4
0
File: tests.py Project: elcolie/muy
 def test_blank_array(self):
     assert -1 == answer([])
Example #5
0
File: tests.py Project: elcolie/muy
 def test_some_duplication(self):
     question = ['"5"', '"5"', '"4"', '"2"']
     assert 4 == answer(question)