Exemplo n.º 1
0
 def test_grid3186547290(self):
     digits = '3186547290'
     self.assertEqual(
         grid(digits), [
             " _     _  _  _     _  _  _  _ ",
             " _|  ||_||_ |_ |_|  | _||_|| |",
             " _|  ||_||_| _|  |  ||_  _||_|",
             "                              "
         ])
Exemplo n.º 2
0
 def test_grid3186547290(self):
     digits = '3186547290'
     self.assertEqual(
         grid(digits), [
             " _     _  _  _     _  _  _  _ ",
             " _|  ||_||_ |_ |_|  | _||_|| |",
             " _|  ||_||_| _|  |  ||_  _||_|",
             "                              "
         ])
Exemplo n.º 3
0
 def test_grid1(self):
     self.assertEqual(grid('1'), ["   ", "  |", "  |", "   "])
Exemplo n.º 4
0
 def test_grid0(self):
     self.assertEqual(grid('0'), [" _ ", "| |", "|_|", "   "])
Exemplo n.º 5
0
 def test_invalid_grid(self):
     with self.assertRaises(ValueError):
         grid('123a')
Exemplo n.º 6
0
 def test_grid1(self):
     self.assertEqual(["   ",
                       "  |",
                       "  |",
                       "   "], grid('1'))
Exemplo n.º 7
0
 def test_grid0(self):
     self.assertEqual([" _ ",
                       "| |",
                       "|_|",
                       "   "], grid('0'))
Exemplo n.º 8
0
 def test_grid1(self):
     self.assertEqual(grid('1'), ["   ",
                                  "  |",
                                  "  |",
                                  "   "])
Exemplo n.º 9
0
 def test_grid1(self):
     self.assertEqual(["   ", "  |", "  |", "   "], grid('1'))