示例#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([]))