(self)
| 756 | assert_array_equal(y, b) |
| 757 | |
| 758 | def test_array(self): |
| 759 | c = TextIO() |
| 760 | c.write('1 2\n3 4') |
| 761 | |
| 762 | c.seek(0) |
| 763 | x = np.loadtxt(c, dtype=int) |
| 764 | a = np.array([[1, 2], [3, 4]], int) |
| 765 | assert_array_equal(x, a) |
| 766 | |
| 767 | c.seek(0) |
| 768 | x = np.loadtxt(c, dtype=float) |
| 769 | a = np.array([[1, 2], [3, 4]], float) |
| 770 | assert_array_equal(x, a) |
| 771 | |
| 772 | def test_1D(self): |
| 773 | c = TextIO() |
nothing calls this directly
no test coverage detected