Test Array1 __str__ method
(self)
| 101 | self.assertTrue(self.array1.asString() == "[ 1, 2, 3, 4, 5 ]") |
| 102 | |
| 103 | def testStr(self): |
| 104 | "Test Array1 __str__ method" |
| 105 | for i in range(self.array1.length()): self.array1[i] = i-2 |
| 106 | self.assertTrue(str(self.array1) == "[ -2, -1, 0, 1, 2 ]") |
| 107 | |
| 108 | def testView(self): |
| 109 | "Test Array1 view method" |