Esempio n. 1
0
 def test_one(self):
     self.assertEquals(123, list_to_number([1, 2, 3]))
Esempio n. 2
0
 def test_one(self):
     self.assertEqual(123,  list_to_number([1, 2, 3]))
 def test_consonants_upper_case(self):
     self.assertEqual(3311,solution.list_to_number([3,3,1,1]))
Esempio n. 4
0
 def test_3(self):
     self.assertEqual(123023, solution.list_to_number([1,2,3,0,2,3]))
	def test_list_to_numbers_123(self):
		self.assertEqual(123, solution.list_to_number([1,2,3]))
Esempio n. 6
0
 def test_problem_statement_cases(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_different_digits(self):
     self.assertEqual(123, solution.list_to_number([1, 2, 3]))
Esempio n. 8
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_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_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)
 def test_consonants_upper_case(self):
     self.assertEqual(3311, solution.list_to_number([3, 3, 1, 1]))
 def test_with_zero(self):
     self.assertEqual(0, solution.list_to_number([0]))
Esempio n. 13
0
 def test_same_digits(self):
     self.assertEqual(99999,solution.list_to_number([9, 9, 9, 9, 9]))
Esempio n. 14
0
 def test_three(self):
     self.assertEqual(123023, list_to_number([1, 2, 3, 0, 2, 3]))
Esempio n. 15
0
 def test_same_digits(self):
     self.assertEqual(99999, solution.list_to_number([9, 9, 9, 9, 9]))
Esempio n. 16
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)
Esempio n. 17
0
 def test3(self):
     self.assertEqual(321, solution.list_to_number([0, 3, 2, 1]))
Esempio n. 18
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]))
Esempio n. 19
0
 def test4(self):
     self.assertEqual(900, solution.list_to_number([9, 0, 0]))
Esempio n. 20
0
 def test_different_digits(self):
     self.assertEqual(123,solution.list_to_number([1,2,3]))
Esempio n. 21
0
 def test2(self):
     self.assertEqual(189321, solution.list_to_number([1, 8, 9, 3, 2, 1]))
 def test_with_zero(self):
     self.assertEqual(0,solution.list_to_number([0]))
 def test_list_to_number_1(self):
     self.assertEqual(123, solution.list_to_number([1, 2, 3]))
 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]))
Esempio n. 25
0
	def test_list_to_number_2(self):
		self.assertEqual(1, list_to_number([1]))
Esempio n. 26
0
 def test_tree(self):
     self.assertEquals(123023, list_to_number([1, 2, 3, 0, 2, 3]))
Esempio n. 27
0
	def test_list_to_number_1(self):
		self.assertEqual(237148, list_to_number([2, 3, 7, 1, 4, 8]))
Esempio n. 28
0
 def test_two(self):
     self.assertEquals(99999, list_to_number([9, 9, 9, 9, 9]))
Esempio n. 29
0
 def test_list_to_number3(self):
     self.assertEqual(10, solution.list_to_number([1, 0]))
Esempio n. 30
0
 def test_two(self):
     self.assertEqual(99999, list_to_number([9, 9, 9, 9, 9]))
Esempio n. 31
0
 def test_list_to_number4(self):
     self.assertEqual(98765, solution.list_to_number([9, 8, 7, 6, 5]))
Esempio n. 32
0
 def test_with_single_digit_lists(self):
     self.assertEqual(solution.list_to_number([0]), 0)
     self.assertEqual(solution.list_to_number([8]), 8)
Esempio n. 33
0
 def test_list_to_number5(self):
     self.assertEqual(12345, solution.list_to_number([1, 2, 3, 4, 5]))
Esempio n. 34
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)
Esempio n. 35
0
 def test_list_to_number1(self):
     self.assertEqual(9999, solution.list_to_number([9, 9, 9, 9]))
Esempio n. 36
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)
Esempio n. 37
0
 def test_list_to_number2(self):
     self.assertEqual(1234, solution.list_to_number([1, 2, 3, 4]))
 def test_list_to_number(self):
     self.assertEqual(123, solution.list_to_number([1, 2, 3]))
     self.assertEqual(99999, solution.list_to_number([9, 9, 9, 9, 9]))
     self.assertEqual(123023, solution.list_to_number([1, 2, 3, 0, 2, 3]))
 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)
Esempio n. 40
0
	def test_list_to_numbers_99999(self):
		self.assertEqual(99999, solution.list_to_number([9,9,9,9,9]))
Esempio n. 41
0
 def test_with_one_element_list(self):
     self.assertEqual(1, solution.list_to_number([1]))