Skip to content

Commit

Permalink
two-fer: Update test suite to match canonical-data.json and resolve e…
Browse files Browse the repository at this point in the history
  • Loading branch information
denislooby authored and josix committed Oct 27, 2017
1 parent 1810b31 commit a2d8932
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions exercises/two-fer/two_fer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@

import two_fer

# Tests adapted from `problem-specifications//canonical-data.json` @ v1.1.0


class Two_Fer_test(unittest.TestCase):
def test_empty(self):
self.assertEqual(two_fer.two_fer(), 'One for you, one for me.')

def test_eve(self):
self.assertEqual(two_fer.two_fer("Eve"), "One for Eve, one for me.")
def test_alice(self):
self.assertEqual(two_fer.two_fer("Alice"),
"One for Alice, one for me.")

def test_bob(self):
self.assertEqual(two_fer.two_fer("Bob"), "One for Bob, one for me.")
Expand Down

0 comments on commit a2d8932

Please sign in to comment.