diff options
Diffstat (limited to 'universe/data_structures_and_algorithms/recursive-string-permutations.py')
-rw-r--r-- | universe/data_structures_and_algorithms/recursive-string-permutations.py | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/universe/data_structures_and_algorithms/recursive-string-permutations.py b/universe/data_structures_and_algorithms/recursive-string-permutations.py deleted file mode 100644 index 70461ddf5dac..000000000000 --- a/universe/data_structures_and_algorithms/recursive-string-permutations.py +++ /dev/null @@ -1,37 +0,0 @@ -import unittest - - -################################################################################ -# Implementation -################################################################################ -# get_permutations :: String -> Set(String) -def get_permutations(string): - pass - - -################################################################################ -# Tests -################################################################################ -class Test(unittest.TestCase): - def test_empty_string(self): - actual = get_permutations('') - expected = set(['']) - self.assertEqual(actual, expected) - - def test_one_character_string(self): - actual = get_permutations('a') - expected = set(['a']) - self.assertEqual(actual, expected) - - def test_two_character_string(self): - actual = get_permutations('ab') - expected = set(['ab', 'ba']) - self.assertEqual(actual, expected) - - def test_three_character_string(self): - actual = get_permutations('abc') - expected = set(['abc', 'acb', 'bac', 'bca', 'cab', 'cba']) - self.assertEqual(actual, expected) - - -unittest.main(verbosity=2) |