Example #1
0
 def testN42B3(self):
     self.assertEqual(hw.numToBaseB(42, 3), '1120',
                      "Failed to properly convert 42 to base 3")
Example #2
0
 def testN42B10(self):
     self.assertEqual(hw.numToBaseB(42, 10), '42',
                      "Failed to properly convert 42 to base 10")
Example #3
0
 def testN42B2(self):
     self.assertEqual(hw.numToBaseB(42, 2), '101010',
                      "Failed to properly convert 42 to base 2")
Example #4
0
 def testN42B7(self):
     self.assertEqual(hw.numToBaseB(42, 7), '60',
                      "Failed to properly convert 42 to base 7")
 def testN42B3(self):
     self.assertEqual(hw.numToBaseB(42,3), '1120',"Failed to properly convert 42 to base 3")
 def testN42B2(self):
     self.assertEqual(hw.numToBaseB(42,2), '101010',"Failed to properly convert 42 to base 2")
 def testN42B10(self):
     self.assertEqual(hw.numToBaseB(42,10), '42', "Failed to properly convert 42 to base 10")
 def testN42B7(self):
     self.assertEqual(hw.numToBaseB(42,7), '60', "Failed to properly convert 42 to base 7")