Exemple #1
0
 def test_distanceTo1024Is31(self):
     spirale=Spirale()
     self.assertEqual(spirale.get_distance(1024), 31)
Exemple #2
0
 def test_distanceTo23Is2(self):
     spirale=Spirale()
     self.assertEqual(spirale.get_distance(23), 2)
Exemple #3
0
 def test_distanceTo1Is0(self):
     spirale=Spirale()
     self.assertEqual(spirale.get_distance(1), 0)
Exemple #4
0
 def test_distanceTo12Is3(self):
     spirale=Spirale()
     self.assertEqual(spirale.get_distance(12), 3)
Exemple #5
0
from spirale import Spirale

spirale = Spirale()

print spirale.get_distance(347991)