Example #1
0
 def testZero(self):
     self.assertEqual(main.mkHex(0.0),"00")
Example #2
0
 def testFifteen(self):
     self.assertEqual(main.mkHex(15.0/255) , "0f")
Example #3
0
 def test254(self):
     self.assertEqual(main.mkHex(254.0/255) , "fe")
Example #4
0
 def testFull(self):
     self.assertEqual(main.mkHex(1.0) , "ff")
Example #5
0
 def testOne(self):
     self.assertEqual(main.mkHex(1.0/255) , "01")
Example #6
0
 def testFull(self):
     self.assertEqual(main.mkHex(1.0), "ff")
Example #7
0
 def testZero(self):
     self.assertEqual(main.mkHex(0.0), "00")
Example #8
0
 def test254(self):
     self.assertEqual(main.mkHex(254.0 / 255), "fe")
Example #9
0
 def testFifteen(self):
     self.assertEqual(main.mkHex(15.0 / 255), "0f")
Example #10
0
 def testOne(self):
     self.assertEqual(main.mkHex(1.0 / 255), "01")