예제 #1
0
 def test_sort_by_totals(self):
     # type: () -> None
     empty = [] # type: List[int]
     value_arrays = {'c': [0, 1], 'a': [9], 'b': [1, 1, 1], 'd': empty}
     self.assertEqual(sort_by_totals(value_arrays), ['a', 'b', 'c', 'd'])
예제 #2
0
 def test_sort_by_totals(self):
     # type: () -> None
     empty = []  # type: List[int]
     value_arrays = {'c': [0, 1], 'a': [9], 'b': [1, 1, 1], 'd': empty}
     self.assertEqual(sort_by_totals(value_arrays), ['a', 'b', 'c', 'd'])
예제 #3
0
 def test_sort_by_totals(self) -> None:
     empty: List[int] = []
     value_arrays = {"c": [0, 1], "a": [9], "b": [1, 1, 1], "d": empty}
     self.assertEqual(sort_by_totals(value_arrays), ["a", "b", "c", "d"])