Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilson committed Dec 6, 2024
1 parent 36ecceb commit ad4ee17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/arrow/compute/kernels/scalar_arithmetic_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2543,14 +2543,14 @@ TYPED_TEST(TestBinaryArithmeticFloating, TrigAtan2) {
TYPED_TEST(TestUnaryArithmeticFloating, TrigAtanh) {
this->SetNansEqual(true);
this->AssertUnaryOp(Atanh, "[-Inf, Inf, -2, 2]", "[NaN, NaN, NaN, NaN]");
this->AssertUnaryOp(Atanh, "[-1, 1]", "[-Inf, Inf]");
for (auto check_overflow : {false, true}) {
this->SetOverflowCheck(check_overflow);
this->AssertUnaryOp(Atanh, "[]", "[]");
this->AssertUnaryOp(Atanh, "[null, NaN]", "[null, NaN]");
this->AssertUnaryOp(Atanh, "[-1, 1]", "[-Inf, Inf]");
this->AssertUnaryOp(Atanh, "[0, 0.6]", MakeArray(0, M_LN2));
}
this->AssertUnaryOpRaises(Atanh, "[-Inf, Inf, -2, 2]", "domain error");
this->AssertUnaryOpRaises(Atanh, "[-Inf, Inf, -1, 1, -2, 2]", "domain error");
}

TYPED_TEST(TestUnaryArithmeticIntegral, Trig) {
Expand Down

0 comments on commit ad4ee17

Please sign in to comment.