mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-07 01:48:02 +00:00
Polish permutation challenge and solution
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user