(self)
| 607 | assert_equal(test, control) |
| 608 | |
| 609 | def test_append_on_nested(self): |
| 610 | # Test append_fields on nested fields |
| 611 | w = self.data[0] |
| 612 | test = append_fields(w, 'C', data=[10, 20, 30]) |
| 613 | control = ma.array([(1, (2, 3.0), 10), |
| 614 | (4, (5, 6.0), 20), |
| 615 | (-1, (-1, -1.), 30)], |
| 616 | mask=[( |
| 617 | 0, (0, 0), 0), (0, (0, 0), 0), (1, (1, 1), 0)], |
| 618 | dtype=[('a', int), |
| 619 | ('b', [('ba', float), ('bb', int)]), |
| 620 | ('C', int)],) |
| 621 | assert_equal(test, control) |
| 622 | |
| 623 | |
| 624 | class TestStackArrays: |
nothing calls this directly
no test coverage detected