From ad4ee17758afb7467b146777a5d013cc2d66e43b Mon Sep 17 00:00:00 2001 From: Kevin H Wilson Date: Fri, 6 Dec 2024 00:27:51 +0000 Subject: [PATCH] add test --- cpp/src/arrow/compute/kernels/scalar_arithmetic_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/src/arrow/compute/kernels/scalar_arithmetic_test.cc b/cpp/src/arrow/compute/kernels/scalar_arithmetic_test.cc index b60548be3bd80..b33374ee03709 100644 --- a/cpp/src/arrow/compute/kernels/scalar_arithmetic_test.cc +++ b/cpp/src/arrow/compute/kernels/scalar_arithmetic_test.cc @@ -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) {