Exemplo n.º 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"])
Exemplo n.º 2
0
 def test_normal_input(self):
     assert get_words("hello") == set(["hello"])
     assert get_words("hello world") == set(["hello", "world"])
Exemplo n.º 3
0
 def test_empty_input(self):
     assert get_words("") == set([])
Exemplo n.º 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"])
Exemplo n.º 5
0
 def test_normal_input(self):
     assert get_words("hello") == set(["hello"])
     assert get_words("hello world") == set(["hello", "world"])
Exemplo n.º 6
0
 def test_empty_input(self):
     assert get_words("") == set([])