Example #1
0
 def test_input_with_params(self):
     assert get_words("hello world", 6) == set([])
     assert get_words("hello world bye", 4) == set(["hello", "world"])
     assert get_words("hello world bye goooodbye", 4,
                      6) == set(["hello", "world"])
Example #2
0
 def test_normal_input(self):
     assert get_words("hello") == set(["hello"])
     assert get_words("hello world") == set(["hello", "world"])
Example #3
0
 def test_empty_input(self):
     assert get_words("") == set([])
 def test_input_with_params(self):
     assert get_words("hello world", 6) == set([])
     assert get_words("hello world bye", 4) == set(["hello", "world"])
     assert get_words("hello world bye goooodbye", 4, 6) == set(["hello", "world"])
 def test_normal_input(self):
     assert get_words("hello") == set(["hello"])
     assert get_words("hello world") == set(["hello", "world"])
 def test_empty_input(self):
     assert get_words("") == set([])