예제 #1
0
 def test_BaseToBinary_HexOdd(self):
     self.assertEqual('9B', baseToBinary(self.baseHex, self.testOdd))
예제 #2
0
 def test_BaseToBinary_HexTen(self):
     self.assertEqual('A', baseToBinary(self.baseHex, self.testTen))
예제 #3
0
 def test_BaseToBinary_HexEven(self):
     self.assertEqual('2A', baseToBinary(self.baseHex, self.testEven))
예제 #4
0
 def test_BaseToBinary_OctOdd(self):
     self.assertEqual('233', baseToBinary(self.baseOct, self.testOdd))
예제 #5
0
 def test_BaseToBinary_HexZero(self):
     self.assertEqual('0', baseToBinary(self.baseHex, self.testZero))
예제 #6
0
 def test_BaseToBinary_OctEven(self):
     self.assertEqual('52', baseToBinary(self.baseOct, self.testEven))
예제 #7
0
 def test_BaseToBinary_OctZero(self):
     self.assertEqual('0', baseToBinary(self.baseOct, self.testZero))
예제 #8
0
 def test_BaseToBinary_BinOdd(self):
     self.assertEqual('10011011', baseToBinary(self.baseBin, self.testOdd))
예제 #9
0
 def test_BaseToBinary_BinEven(self):
     self.assertEqual('101010', baseToBinary(self.baseBin, self.testEven))
예제 #10
0
 def test_BaseToBinary_BinZero(self):
     self.assertEqual('0', baseToBinary(self.baseBin, self.testZero))