def test_power2_3(self):
     eq_(8, power2(3))
 def test_power2_1(self):
     eq_(2, power2(1))
 def test_power2_2(self):
     eq_(4, power2(2))
 def test_power2_10(self):
     eq_(1024, power2(10))
Exemple #5
0
 def test_power2_1(self):
     eq_(2, power2(1))
 def test_power2_6(self):
     eq_(64, power2(6))
 def test_power2_8(self):
     eq_(256, power2(8))
Exemple #8
0
 def test_power2_7(self):
     eq_(128, power2(7))
Exemple #9
0
 def test_power2_8(self):
     eq_(256, power2(8))
Exemple #10
0
 def test_power2_5(self):
     eq_(32, power2(5))
Exemple #11
0
 def test_power2_6(self):
     eq_(64, power2(6))
Exemple #12
0
 def test_power2_4(self):
     eq_(16, power2(4))
Exemple #13
0
 def test_power2_3(self):
     eq_(8, power2(3))
Exemple #14
0
 def test_power2_2(self):
     eq_(4, power2(2))
 def test_power2_4(self):
     eq_(16, power2(4))
Exemple #16
0
 def test_power2_9(self):
     eq_(512, power2(9))
 def test_power2_5(self):
     eq_(32, power2(5))
Exemple #18
0
 def test_power2_10(self):
     eq_(1024, power2(10))
 def test_power2_7(self):
     eq_(128, power2(7))
Exemple #20
0
 def test_power2_negative(self):
     eq_(1, power2(-5))
 def test_power2_9(self):
     eq_(512, power2(9))
 def test_power2_0(self):
     eq_(1, power2(0))
 def test_power2_negative(self):
     eq_(1, power2(-5))
Exemple #24
0
 def test_power2_0(self):
     eq_(1, power2(0))