コード例 #1
0
ファイル: test.py プロジェクト: pkoch/codility-rho-2012
 def test_310(self):
    self.assertEqual(
        12,
        len(hit_the_number(310)),
     )
コード例 #2
0
ファイル: test.py プロジェクト: pkoch/codility-rho-2012
 def test_495(self):
    self.assertEqual(
        12,
        len(hit_the_number(495)),
     )
コード例 #3
0
ファイル: test.py プロジェクト: pkoch/codility-rho-2012
 def test_600(self):
    self.assertEqual(
        12,
        len(hit_the_number(600)),
         # (1, 2, 4, 8, 16, 32, 48, 49, 81, 162, 211,),
     )
コード例 #4
0
ファイル: test.py プロジェクト: pkoch/codility-rho-2012
 def test_211(self):
    self.assertEqual(
        11,
        len(hit_the_number(211)),
         # (1, 2, 4, 8, 16, 32, 48, 49, 81, 162, 211,),
     )
コード例 #5
0
ファイル: test.py プロジェクト: pkoch/codility-rho-2012
 def test_7(self):
     self.assertEqual(
         5,
         len(hit_the_number(7)),
     )
コード例 #6
0
ファイル: test.py プロジェクト: pkoch/codility-rho-2012
 def test_one(self):
     self.assertEqual(
         (1,),
         hit_the_number(1),
     )