Exemplo n.º 1
0
 def test100_060(self):
     self.setOP('create')
     testDictionary = {
         'grid': [
             0, 0, -3, 0, 0, -7, 0, -2, 0, -4, 0, -7, 0, 0, -5, -3, 0, 0, 0,
             0, -8, -9, 0, -6, -7, 0, -1, -8, 0, -2, -5, 0, 0, -6, 0, -4, 0,
             -7, 0, 0, -8, 0, -1, -5, 0, -5, 0, 0, -7, -6, 0, 0, 0, -9, 0,
             0, -5, 0, 0, -9, 0, 0, -6, 0, -1, 0, -6, 0, 0, -2, -8, 0, 0,
             -2, -4, -1, -7, 0, -5, 0, 0
         ],
         'integrity':
         'b594924588d873f60df054a64a7bfaa1d4196ab1d2000f1788a453c1765b05b8',
         'status':
         'ok'
     }
     result = creat(self.inputDicthionary)
     self.assertEqual(result, testDictionary)
Exemplo n.º 2
0
 def test100_050(self):
     self.setOP('create')
     self.setlvl('5')
     testDictionary = {
         'grid': [
             -2, 0, 0, 0, -5, 0, -9, -1, 0, -6, 0, 0, 0, 0, -8, 0, 0, 0, 0,
             0, 0, 0, 0, 0, 0, -3, 0, 0, -2, -4, 0, 0, 0, 0, 0, 0, 0, 0, 0,
             -4, 0, 0, 0, 0, -7, 0, -9, -3, 0, -1, 0, -5, 0, 0, 0, 0, 0, 0,
             0, -7, 0, 0, -2, 0, -1, 0, 0, -3, 0, 0, -5, 0, -4, 0, 0, -6, 0,
             0, 0, 0, 0
         ],
         'integrity':
         '110a79143bc7c2b66faff5e8fe895320d402e4f91dbbe6b969931228abb84242',
         'status':
         'ok'
     }
     result = creat(self.inputDicthionary)
     self.assertEqual(result, testDictionary)
Exemplo n.º 3
0
 def test100_040(self):
     self.setOP('create')
     self.setlvl('4')
     testDictionary = {
         'grid': [
             0, -6, -7, 0, -2, 0, 0, 0, -3, 0, -8, 0, -7, 0, -3, 0, 0, -6,
             -1, 0, 0, 0, 0, 0, 0, -7, 0, 0, -5, 0, 0, -3, 0, 0, 0, -8, -8,
             0, 0, 0, -4, 0, 0, 0, -1, -4, 0, 0, 0, -6, 0, 0, -5, 0, -3, 0,
             0, 0, 0, 0, 0, 0, -2, -6, 0, 0, -2, 0, -4, 0, -3, 0, -5, 0, 0,
             0, -9, 0, -8, -4, 0
         ],
         'integrity':
         '0ea83ad27c27241477102e2377f1bb14cc2f8c6125fbc85fab972c9ab0661319',
         'status':
         'ok'
     }
     result = creat(self.inputDicthionary)
     self.assertEqual(result, testDictionary)
Exemplo n.º 4
0
 def test100_020(self):
     self.setOP('create')
     self.setlvl('2')
     testDictionary = {
         'grid': [
             0, -3, 0, 0, 0, -2, 0, -6, -5, -5, -8, 0, -1, -3, -4, 0, -2,
             -9, 0, -2, -7, 0, -5, 0, 0, 0, -1, 0, 0, -2, 0, 0, -9, 0, -1,
             -3, -8, -5, -9, 0, -7, -1, 0, -4, -2, -1, 0, 0, -6, -2, 0, 0,
             0, -7, 0, 0, 0, 0, -4, -7, -2, -5, 0, -6, -7, -5, 0, 0, -8, 0,
             -9, 0, 0, -9, -4, -5, -6, 0, 0, -7, -8
         ],
         'integrity':
         '39a4fbe2283d82b8dff98f36e6fcb09e6071653a77795e9527b26f90b4ad0d26',
         'status':
         'ok'
     }
     result = creat(self.inputDicthionary)
     self.assertEqual(result, testDictionary)
Exemplo n.º 5
0
 def test100_010(self):
     self.setOP('create')
     self.setlvl('1')
     testDictionary = {
         'grid': [
             -8, -1, -5, -7, -6, -9, -3, -2, 0, -4, -9, 0, 0, 0, -5, -8, -7,
             0, 0, 0, -6, 0, -4, -8, 0, -9, -5, 0, -8, -1, 0, 0, -3, 0, 0,
             -2, 0, -5, 0, -1, -8, 0, -9, 0, -7, -7, -3, -9, -5, -2, -4, -6,
             -8, -1, -9, -4, 0, 0, 0, -7, 0, -1, -8, -5, -2, 0, -8, -9, 0,
             -4, -6, -3, -1, -6, 0, -4, -3, -2, -7, 0, 0
         ],
         'integrity':
         '634dd6769e9b9a53ee4416edb9790684ac18dcbde5b879260610ff27794b66f5',
         'status':
         'ok'
     }
     result = creat(self.inputDicthionary)
     self.assertEqual(result, testDictionary)
Exemplo n.º 6
0
 def test900_020(self):
     self.setOP('create')
     self.setlvl('l')
     testDictionary = {'status': 'error: invalid level'}
     result = creat(self.inputDicthionary)
     self.assertEqual(result, testDictionary)