예제 #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"])
예제 #2
0
 def test_normal_input(self):
     assert get_words("hello") == set(["hello"])
     assert get_words("hello world") == set(["hello", "world"])
예제 #3
0
 def test_empty_input(self):
     assert get_words("") == set([])
예제 #4
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"])
예제 #5
0
 def test_normal_input(self):
     assert get_words("hello") == set(["hello"])
     assert get_words("hello world") == set(["hello", "world"])
예제 #6
0
 def test_empty_input(self):
     assert get_words("") == set([])