message: Add test for Expm1 for small parameter regime of complex numbers.
diff: @@ -587,6 +587,26 @@ class UnaryOpsTest(xla_test.XLATestCase):
  rtol=1e-6,
  atol=1e-6)
  + # For real part close to zero, or imaginary part close to a multiple of
  + # pi.
  +
  + self._assertOpOutputMatchesExpected(
  + math_ops.expm1,
  + np.array([[1e-11 + 1j, -1e-11 - 1j, 1. + 1e-11j,
  + -1. - 1e-11j, 1e-13j + 1e-13j]], dtype=dtype),
  + # TODO(srvasude): Use numpy as the source of truth after we depend on
  + # latest numpy with this pull request:
  + # https://github.com/numpy/numpy/pull/15110.
  + # The numbers below were generated by scipy.special.expm1.
  + expected=np.array([[
  + -4.59697694e-01+8.41470985e-01j,
  + -4.59697694e-01-8.41470985e-01j,
  + 1.71828183e+00+2.71828183e-11j,
  + -6.32120559e-01-3.67879441e-12j,
  + -2.00000000e-26+2.00000000e-13j]], dtype=dtype),
  + rtol=1e-09,
  + atol=1e-20)
  +
  self._assertOpOutputMatchesExpected(
  math_ops.reciprocal,
  np.array([[1, 2j, 2 + 3j]], dtype=dtype),
  