(self)
| 550 | assert_equal(test, control) |
| 551 | |
| 552 | def test_w_shorter_flex(self): |
| 553 | # Test merge_arrays w/ a shorter flexndarray. |
| 554 | z = self._create_arrays()[-1] |
| 555 | |
| 556 | # Fixme, this test looks incomplete and broken |
| 557 | #test = merge_arrays((z, np.array([10, 20, 30]).view([('C', int)]))) |
| 558 | #control = np.array([('A', 1., 10), ('B', 2., 20), ('-1', -1, 20)], |
| 559 | # dtype=[('A', '|S3'), ('B', float), ('C', int)]) |
| 560 | #assert_equal(test, control) |
| 561 | |
| 562 | merge_arrays((z, np.array([10, 20, 30]).view([('C', int)]))) |
| 563 | np.array([('A', 1., 10), ('B', 2., 20), ('-1', -1, 20)], |
| 564 | dtype=[('A', '|S3'), ('B', float), ('C', int)]) |
| 565 | |
| 566 | def test_singlerecord(self): |
| 567 | _, x, y, z = self._create_arrays() |
nothing calls this directly
no test coverage detected