def test_lexical_comparison_bug(self): u = [5, 50, 56] v = Question_4.rearrange_integers(u) w = 56550 self.assertEqual(v, w)
def test_problem_example(self): u = [50, 2, 1, 9] v = Question_4.rearrange_integers(u) w = 95021 self.assertEqual(v, w)
def test_simple_case(self): u = [1, 2, 3, 4, 5] v = Question_4.rearrange_integers(u) w = 54321 self.assertEqual(v, w)
def test_single_number(self): u = [1] v = Question_4.rearrange_integers(u) w = 1 self.assertEqual(v, w)
def test_already_rearranged(self): u = [5, 4, 3, 2, 1] v = Question_4.rearrange_integers(u) w = 54321 self.assertEqual(v, w)
def test_zero_padding_bug(self): u = [420, 42, 423] v = Question_4.rearrange_integers(u) w = 42423420 self.assertEqual(v, w)