Test norm function with bad list
(self)
| 36 | |
| 37 | # Test (type IN_ARRAY3[ANY][ANY][ANY]) typemap |
| 38 | def testNormBadList(self): |
| 39 | "Test norm function with bad list" |
| 40 | print(self.typeStr, "... ", end=' ', file=sys.stderr) |
| 41 | norm = Tensor.__dict__[self.typeStr + "Norm"] |
| 42 | tensor = [[[0, "one"], [2, 3]], |
| 43 | [[3, "two"], [1, 0]]] |
| 44 | self.assertRaises(BadListError, norm, tensor) |
| 45 | |
| 46 | # Test (type IN_ARRAY3[ANY][ANY][ANY]) typemap |
| 47 | def testNormWrongDim(self): |