예제 #1
0
 def test_true_2(self):
     self.assertTrue(powerof4(64))
예제 #2
0
 def test_false_5(self):
     self.assertFalse(powerof4(True))
예제 #3
0
 def test_true(self):
     self.assertTrue(powerof4(1024))
예제 #4
0
 def test_false_4(self):
     self.assertFalse(powerof4('aa'))
예제 #5
0
 def test_false_3(self):
     self.assertFalse(powerof4(-25))
예제 #6
0
 def test_false_2(self):
     self.assertFalse(powerof4(25))
예제 #7
0
 def test_false(self):
     self.assertFalse(powerof4(102))
예제 #8
0
 def test_true_3(self):
     self.assertTrue(powerof4(1))