(self)
| 739 | assert_array_equal(y, b) |
| 740 | |
| 741 | def test_array(self): |
| 742 | c = TextIO() |
| 743 | c.write('1 2\n3 4') |
| 744 | |
| 745 | c.seek(0) |
| 746 | x = np.loadtxt(c, dtype=int) |
| 747 | a = np.array([[1, 2], [3, 4]], int) |
| 748 | assert_array_equal(x, a) |
| 749 | |
| 750 | c.seek(0) |
| 751 | x = np.loadtxt(c, dtype=float) |
| 752 | a = np.array([[1, 2], [3, 4]], float) |
| 753 | assert_array_equal(x, a) |
| 754 | |
| 755 | def test_1D(self): |
| 756 | c = TextIO() |
nothing calls this directly
no test coverage detected