MCPcopy Create free account
hub / github.com/numpy/numpy / testNormBadList

Method testNormBadList

tools/swig/test/testTensor.py:38–44  ·  view source on GitHub ↗

Test norm function with bad list

(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 1

printFunction · 0.85

Tested by

no test coverage detected