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

Method testNormWrongSize

tools/swig/test/testTensor.py:56–62  ·  view source on GitHub ↗

Test norm function with wrong size

(self)

Source from the content-addressed store, hash-verified

54
55 # Test (type IN_ARRAY3[ANY][ANY][ANY]) typemap
56 def testNormWrongSize(self):
57 "Test norm function with wrong size"
58 print(self.typeStr, "... ", end=' ', file=sys.stderr)
59 norm = Tensor.__dict__[self.typeStr + "Norm"]
60 tensor = [[[0, 1, 0], [2, 3, 2]],
61 [[3, 2, 3], [1, 0, 1]]]
62 self.assertRaises(TypeError, norm, tensor)
63
64 # Test (type IN_ARRAY3[ANY][ANY][ANY]) typemap
65 def testNormNonContainer(self):

Callers

nothing calls this directly

Calls 1

printFunction · 0.85

Tested by

no test coverage detected