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

Method testConstructor2

tools/swig/test/testFarray.py:33–39  ·  view source on GitHub ↗

Test Farray copy constructor

(self)

Source from the content-addressed store, hash-verified

31 self.assertTrue(isinstance(self.array, Farray.Farray))
32
33 def testConstructor2(self):
34 "Test Farray copy constructor"
35 for i in range(self.nrows):
36 for j in range(self.ncols):
37 self.array[i, j] = i + j
38 arrayCopy = Farray.Farray(self.array)
39 self.assertTrue(arrayCopy == self.array)
40
41 def testConstructorBad1(self):
42 "Test Farray size constructor, negative nrows"

Callers

nothing calls this directly

Calls 1

FarrayMethod · 0.80

Tested by

no test coverage detected