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

Method testNormWrongDim

tools/swig/test/testTensor.py:47–53  ·  view source on GitHub ↗

Test norm function with wrong dimensions

(self)

Source from the content-addressed store, hash-verified

45
46 # Test (type IN_ARRAY3[ANY][ANY][ANY]) typemap
47 def testNormWrongDim(self):
48 "Test norm function with wrong dimensions"
49 print(self.typeStr, "... ", end=' ', file=sys.stderr)
50 norm = Tensor.__dict__[self.typeStr + "Norm"]
51 tensor = [[0, 1, 2, 3],
52 [3, 2, 1, 0]]
53 self.assertRaises(TypeError, norm, tensor)
54
55 # Test (type IN_ARRAY3[ANY][ANY][ANY]) typemap
56 def testNormWrongSize(self):

Callers

nothing calls this directly

Calls 1

printFunction · 0.85

Tested by

no test coverage detected