Ejemplo n.º 1
0
	def test_base_to_int_negative(self):
		self.assertEqual(lab1.base_to_int("-10000", 2), -16)
Ejemplo n.º 2
0
	def test_base_to_int_10(self):
		self.assertEqual(lab1.base_to_int("16", 10), 16)
Ejemplo n.º 3
0
	def test_base_to_int_0(self):
		self.assertEqual(lab1.base_to_int("123", 0), 0)
Ejemplo n.º 4
0
	def test_base_to_int_16(self):
		self.assertEqual(lab1.base_to_int("10000", 2), 16)
Ejemplo n.º 5
0
	def test_base_to_int_3(self):
		self.assertEqual(lab1.base_to_int("110", 3), 12)
Ejemplo n.º 6
0
 def test_base_to_int_negative(self):
     self.assertEqual(lab1.base_to_int("-10000", 2), -16)
Ejemplo n.º 7
0
 def test_base_to_int_0(self):
     self.assertEqual(lab1.base_to_int("123", 0), 0)
Ejemplo n.º 8
0
 def test_base_to_int_10(self):
     self.assertEqual(lab1.base_to_int("16", 10), 16)
Ejemplo n.º 9
0
 def test_base_to_int_3(self):
     self.assertEqual(lab1.base_to_int("110", 3), 12)
Ejemplo n.º 10
0
 def test_base_to_int_16(self):
     self.assertEqual(lab1.base_to_int("10000", 2), 16)