Polish permutation challenge and solution

This commit is contained in:
Donne Martin
2016-06-05 07:18:14 -04:00
parent 730e8a0d67
commit 1656fd50e3
3 changed files with 22 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ from nose.tools import assert_equal
class TestPermutation(object):
def test_permutation(self, func):
assert_equal(func(None, 'foo'), False)
assert_equal(func('', 'foo'), False)
assert_equal(func('Nib', 'bin'), False)
assert_equal(func('act', 'cat'), True)