示例#1
0
 def testInsert900_030(self):
     self.setValue('3')
     self.setGrid('[-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]')
     self.setIntegrity('634dd6769e9b9a53ee4416edb9790684ac18dcbde5b879260610ff27794b66f5')
     testDictionary = {'status':'error: missing cell reference'}
     result = insertt(self.inputDicthionary)
     self.assertEqual(result, testDictionary)
示例#2
0
 def testInsert900_060(self):
     self.setCell('R3C1')
     self.setValue('3')
     self.setGrid('[-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]')
     self.setIntegrity('0000000000000000000000000000000000000000000000000000000000000000')
     testDictionary = {'status':'error: integrity mismatch'}
     result = insertt(self.inputDicthionary)
     self.assertEqual(result, testDictionary)
示例#3
0
 def testInsert900_040(self):
     self.setCell('R1C1')
     self.setValue('3')
     self.setGrid('[-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]')
     self.setIntegrity('634dd6769e9b9a53ee4416edb9790684ac18dcbde5b879260610ff27794b66f5')
     testDictionary = {'status':'error: attempt to change fixed hint'}
     result = insertt(self.inputDicthionary)
     self.assertEqual(result, testDictionary)
示例#4
0
 def testInsert100_030(self):
     self.setCell('R3C1')
     self.setGrid('[-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]')
     self.setIntegrity('634dd6769e9b9a53ee4416edb9790684ac18dcbde5b879260610ff27794b66f5')
     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 = insertt(self.inputDicthionary)
     self.assertEqual(result, testDictionary)
示例#5
0
 def testInsert100_060(self):
     self.setCell('R4C1')
     self.setValue('4')
     self.setGrid('[-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]')
     self.setIntegrity('634dd6769e9b9a53ee4416edb9790684ac18dcbde5b879260610ff27794b66f5')
     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, 4, -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': 'c101472b713bb8130866b58d1a614513bd6c3a9955574313d86a5a69cd3e2a48', 'status':'warning'}
     result = insertt(self.inputDicthionary)
     self.assertEqual(result, testDictionary)
示例#6
0
 def testInsert100_050(self):
     self.setCell('R2C4')
     self.setValue('6')
     self.setGrid('[-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]')
     self.setIntegrity('634dd6769e9b9a53ee4416edb9790684ac18dcbde5b879260610ff27794b66f5')
     testDictionary = {'grid': [-8, -1, -5, -7, -6, -9, -3, -2, 0, -4, -9, 0, 
                                6, 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': 'eb5437d4b23266f2e4deda92f850dc11994ded6e1c9e4e6427612a07a264055a', 'status':'warning'}
     result = insertt(self.inputDicthionary)
     self.assertEqual(result, testDictionary)
示例#7
0
 def testInsert100_020(self):
     self.setCell('r3c1')
     self.setValue('3')
     self.setGrid('[-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]')
     self.setIntegrity('634dd6769e9b9a53ee4416edb9790684ac18dcbde5b879260610ff27794b66f5')
     testDictionary = {'grid': [-8, -1, -5, -7, -6, -9, -3, -2, 0, -4, -9, 0, 
                                0, 0, -5, -8, -7, 0, 3, 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': '96484cb0a36217f3a7500c50b5b7d3b6012b336be9a1cae83abab27e48c7a627', 'status':'ok'}
     result = insertt(self.inputDicthionary)
     self.assertEqual(result, testDictionary)
示例#8
0
 def testInsert100_070(self):
     self.setCell('R2C3')
     self.setValue('7')
     self.setGrid('[-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]')
     self.setIntegrity('634dd6769e9b9a53ee4416edb9790684ac18dcbde5b879260610ff27794b66f5')
     testDictionary = {'grid': [-8, -1, -5, -7, -6, -9, -3, -2, 0, -4, -9, 7, 
                                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': '66e8bd7e6d2222b387ad95e39a858dd7c9c36ad88c72fcc7e9c82038166767c5', 'status':'warning'}
     result = insertt(self.inputDicthionary)
     self.assertEqual(result, testDictionary)