Skip to content

Commit

Permalink
small tests errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jtlap committed Oct 8, 2023
1 parent fae5bc2 commit 5825d8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/unit/function/atanh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ TTS_CASE_WITH ( "Check kyosu::atanh over quaternion"
auto lq = kyosu::atanh(q);
TTS_RELATIVE_EQUAL(kyosu::tanh(lr), kyosu::complex(r), 1e-5);
TTS_RELATIVE_EQUAL(kyosu::tanh(lc), c, 1e-3);
TTS_RELATIVE_EQUAL(kyosu::tanh(lq), q, 1e-3);
TTS_RELATIVE_EQUAL(kyosu::tanh(lq), q, 2e-2);
};
4 changes: 2 additions & 2 deletions test/unit/function/minmag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ TTS_CASE_WITH ( "Check kyosu::minmag over complex"
{
auto c0 = kyosu::complex(r0,i0);
auto c1 = kyosu::complex(r1,i1);
TTS_RELATIVE_EQUAL(kyosu::minmag(c0, c1), kyosu::if_else(kyosu::abs(c0) >= kyosu::abs(c1), c0, c1), 1e-5);
TTS_RELATIVE_EQUAL(kyosu::minmag(c0, c1), kyosu::if_else(kyosu::abs(c0) <= kyosu::abs(c1), c0, c1), 1e-5);
};

TTS_CASE_WITH ( "Check kyosu::minmag over quaternion"
Expand All @@ -45,5 +45,5 @@ TTS_CASE_WITH ( "Check kyosu::minmag over quaternion"
using type = kyosu::quaternion_t<T>;
auto q0 = type(r0,i0,j0,k0);
auto q1 = type(r1,i1,j1,k1);
TTS_RELATIVE_EQUAL(kyosu::minmag(q0, q1), kyosu::if_else(kyosu::abs(q0) >= kyosu::abs(q1), q0, q1), 1e-5);
TTS_RELATIVE_EQUAL(kyosu::minmag(q0, q1), kyosu::if_else(kyosu::abs(q0) <= kyosu::abs(q1), q0, q1), 1e-5);
};

0 comments on commit 5825d8c

Please sign in to comment.