Skip to content

Commit

Permalink
rotational-cipher: Update tests to version 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lekum authored and Nathan Parsons committed Oct 25, 2017
1 parent 834cb96 commit 8b90343
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exercises/rotational-cipher/rotational_cipher_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
import rotational_cipher


# test cases adapted from `x-common//canonical-data.json` @ version: 1.0.0
# Tests adapted from `problem-specifications//canonical-data.json` @ v1.1.0

class RotationalCipher(unittest.TestCase):
def test_rotate_a_by_0(self):
self.assertEqual(rotational_cipher.rotate('a', 0), 'a')

def test_rotate_a_by_1(self):
self.assertEqual(rotational_cipher.rotate('a', 1), 'b')

def test_rotate_a_by_26(self):
self.assertEqual(rotational_cipher.rotate('a', 26), 'a')

def test_rotate_a_by_0(self):
self.assertEqual(rotational_cipher.rotate('a', 0), 'a')

def test_rotate_m_by_13(self):
self.assertEqual(rotational_cipher.rotate('m', 13), 'z')

Expand Down

0 comments on commit 8b90343

Please sign in to comment.