Ejemplo n.º 1
0
 def test_method_clear_punctiation_symbols_alone(self):
     word = "!"
     solution = ""
     result = StringsCounter.clear_punctiation_symbols(word)
     assert collections.Counter(result) == collections.Counter(solution)
Ejemplo n.º 2
0
 def test_method_clear_punctiation_symbols_at_end_of_string(self):
     word = "Hola?"
     solution = "Hola"
     result = StringsCounter.clear_punctiation_symbols(word)
     assert collections.Counter(result) == collections.Counter(solution)
Ejemplo n.º 3
0
 def test_method_clear_punctiation_symbols_inside_string(self):
     word = "H<o.l;a)"
     solution = "Hola"
     result = StringsCounter.clear_punctiation_symbols(word)
     assert collections.Counter(result) == collections.Counter(solution)