Ejemplo n.º 1
0
 def test1(self):
     myinput = 32
     res = minlen(myinput)
     self.assertEqual(2, res)
     print res
Ejemplo n.º 2
0
 def test7(self):
     myinput = 41
     res = minlen(myinput)
     # 41 = 5^2 + 4^2
     self.assertEqual(2, res)
     print res
Ejemplo n.º 3
0
 def test3(self):
     myinput = 4
     res = minlen(myinput)
     self.assertEqual(1, res)
     print res
Ejemplo n.º 4
0
 def test4(self):
     myinput = 30
     res = minlen(myinput)
     self.assertEqual(3, res)
     print res
Ejemplo n.º 5
0
 def test2(self):
     myinput = 3
     res = minlen(myinput)
     # self.assertEqual(2, res)
     print res