Пример #1
0
 def test_valid_word_list(self):
     """make_frequency_map should return word:frequency pairs on valid input."""
     for inp, out in MAP["VALID"]:
         self.assertEqual(out, make_frequency_map(inp))
Пример #2
0
 def test_empty_word_list(self):
     """make_frequency_map should return empty dict on empty input."""
     self.assertEqual({}, make_frequency_map([]))