Test arrays with nan values in them.
(self)
| 121 | foo(t) |
| 122 | |
| 123 | def test_nan_array(self): |
| 124 | """Test arrays with nan values in them.""" |
| 125 | a = np.array([1, 2, np.nan]) |
| 126 | b = np.array([1, 2, np.nan]) |
| 127 | |
| 128 | self._test_equal(a, b) |
| 129 | |
| 130 | c = np.array([1, 2, 3]) |
| 131 | self._test_not_equal(c, b) |
| 132 | |
| 133 | def test_string_arrays(self): |
| 134 | """Test two arrays with different shapes are found not equal.""" |
nothing calls this directly
no test coverage detected