def test_diferent_lists(self):
     self.assertEqual(2333,solution.list_to_number([2,3,3,3]))
     self.assertEqual(1111,solution.list_to_number([1,1,1,1]))
     self.assertEqual(3333,solution.list_to_number([3,3,3,3]))
     self.assertEqual(300000,solution.list_to_number([3,0,0,0,0,0]))
	def test_list_to_numbers_123(self):
		self.assertEqual(123, solution.list_to_number([1,2,3]))
 def test_different_digits(self):
     self.assertEqual(123,solution.list_to_number([1,2,3]))
Example #4
0
 def test_with_three_digit_lists(self):
     self.assertEqual(solution.list_to_number([1, 2, 3]), 123)
     self.assertEqual(solution.list_to_number([5, 7, 9]), 579)
Example #5
0
 def test_with_leading_zeros(self):
     self.assertEqual(solution.list_to_number([0, 0, 1, 0, 1]), 101)
     self.assertEqual(solution.list_to_number([0, 0, 0, 0, 0, 0]), 0)
Example #6
0
 def test_two(self):
     self.assertEqual(99999, list_to_number([9, 9, 9, 9, 9]))
Example #7
0
 def test_with_single_digit_lists(self):
     self.assertEqual(solution.list_to_number([0]), 0)
     self.assertEqual(solution.list_to_number([8]), 8)
Example #8
0
	def test_list_to_number_1(self):
		self.assertEqual(237148, list_to_number([2, 3, 7, 1, 4, 8]))
 def test_list_to_number3(self):
     self.assertEqual(10, solution.list_to_number([1, 0]))
Example #10
0
 def test2(self):
     self.assertEqual(189321, solution.list_to_number([1, 8, 9, 3, 2, 1]))
Example #11
0
	def test_list_to_number_2(self):
		self.assertEqual(1, list_to_number([1]))
Example #12
0
 def test4(self):
     self.assertEqual(900, solution.list_to_number([9, 0, 0]))
Example #13
0
 def test3(self):
     self.assertEqual(321, solution.list_to_number([0, 3, 2, 1]))
 def test_same_digits(self):
     self.assertEqual(99999,solution.list_to_number([9, 9, 9, 9, 9]))
Example #15
0
 def test_3(self):
     self.assertEqual(123023, solution.list_to_number([1,2,3,0,2,3]))
 def test_list_to_number4(self):
     self.assertEqual(98765, solution.list_to_number([9, 8, 7, 6, 5]))
Example #17
0
 def test_one(self):
     self.assertEqual(123,  list_to_number([1, 2, 3]))
 def test_list_to_number5(self):
     self.assertEqual(12345, solution.list_to_number([1, 2, 3, 4, 5]))
Example #19
0
 def test_three(self):
     self.assertEqual(123023, list_to_number([1, 2, 3, 0, 2, 3]))
 def test_list_to_number2(self):
     self.assertEqual(1234, solution.list_to_number([1, 2, 3, 4]))
Example #21
0
 def test_with_two_digit_lists(self):
     self.assertEqual(solution.list_to_number([4, 2]), 42)
     self.assertEqual(solution.list_to_number([3, 5]), 35)
 def test_list_to_number(self):
     self.assertEqual(list_to_number([1, 2, 3]), 123)
     self.assertEqual(list_to_number([0, 0, 1, 8, 9, 1, 0, 5]), 189105)
     self.assertEqual(list_to_number([4, 8, 9]), 489)
     self.assertEqual(list_to_number([7, 0, 0, 0]), 7000)
     self.assertEqual(list_to_number([1, 4, 5, 0, 7, 0, 8]), 1450708)
Example #23
0
 def test_with_lists_with_more_than_three_digits(self):
     self.assertEqual(solution.list_to_number([9, 9, 9, 9, 9]), 99999)
     self.assertEqual(solution.list_to_number([1, 2, 3, 4, 5, 6, 7, 8, 9]),
                      123456789)
 def test_with_zero(self):
     self.assertEqual(0,solution.list_to_number([0]))
Example #25
0
	def test_list_to_number(self):
		self.assertEqual(123, list_to_number([1,2,3]))
		self.assertEqual(99999, list_to_number([9,9,9,9,9]))
		self.assertEqual(123023, list_to_number([1,2,3,0,2,3]))
 def test_consonants_upper_case(self):
     self.assertEqual(3311,solution.list_to_number([3,3,1,1]))
	def test_list_to_numbers_99999(self):
		self.assertEqual(99999, solution.list_to_number([9,9,9,9,9]))
Example #28
0
 def test_with_one_element_list(self):
     self.assertEqual(1, solution.list_to_number([1]))