示例#1
0
 def test_parityOf_xC8(self):
     self.assertEqual(parityOf(int('C8', 16)), -1)
示例#2
0
 def test_parityOf_xB1(self):
     self.assertEqual(parityOf(int('B1', 16)), 0)
示例#3
0
 def test_parityOf_xA3(self):
     self.assertEqual(parityOf(int('A3', 16)), 0)
示例#4
0
 def test_parityOf_xE7(self):
     self.assertEqual(parityOf(int('E7', 16)), 0)
示例#5
0
 def test_parityOf_1(self):
     self.assertEqual(parityOf(2), -1)
示例#6
0
 def test_parityOf_0(self):
     self.assertEqual(parityOf(0), 0)