Exemplo n.º 1
0
 def test_smallerGrid(self):
     number = 5
     result = defaultGridspecGrid(number)
     self.assertEquals(result, [2, 3])
Exemplo n.º 2
0
 def test_specialCaseThree(self):
     number = 3
     result = defaultGridspecGrid(number)
     self.assertEquals(result, [3, 1])
Exemplo n.º 3
0
 def test_specialCaseTwo(self):
     number = 2
     result = defaultGridspecGrid(number)
     self.assertEquals(result, [1, 2])
Exemplo n.º 4
0
 def test_specialCaseOne(self):
     number = 1
     result = defaultGridspecGrid(number)
     self.assertEquals(result, [1, 1])
Exemplo n.º 5
0
 def test_notSquares(self):
     roots = [3, 4, 5, 123]
     for root in roots:
         result = defaultGridspecGrid(root * root - 1)
         self.assertEquals(result, [root, root])
Exemplo n.º 6
0
 def test_someSquares(self):
     roots = [2, 3, 4, 5, 123]
     for root in roots:
         result = defaultGridspecGrid(root * root)
         self.assertEqual(result, [root, root])