(self, x, dtype, err)
| 185 | self.assertAllEqual(np.isnan(self._cast(np.nan, np.float64, True)), True) |
| 186 | |
| 187 | def _OpError(self, x, dtype, err): |
| 188 | with self.cached_session(): |
| 189 | with self.assertRaisesOpError(err): |
| 190 | math_ops.cast(x, dtype).eval() |
| 191 | |
| 192 | def testNotImplemented(self): |
| 193 | self._OpError(np.arange(0, 10), dtypes.string, "Cast.*int64.*string.*") |
no test coverage detected