Test Array2 default constructor
(self)
| 123 | self.array2 = Array.Array2(self.nrows, self.ncols) |
| 124 | |
| 125 | def testConstructor0(self): |
| 126 | "Test Array2 default constructor" |
| 127 | a = Array.Array2() |
| 128 | self.assertTrue(isinstance(a, Array.Array2)) |
| 129 | self.assertTrue(len(a) == 0) |
| 130 | |
| 131 | def testConstructor1(self): |
| 132 | "Test Array2 nrows, ncols constructor" |