Skip to content

Commit

Permalink
Update unittest.h
Browse files Browse the repository at this point in the history
  • Loading branch information
octoflar authored Jun 22, 2024
1 parent 0d0ed0b commit 91fbd63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/cxx/unittest.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ class Unit_Test
using std::endl;
using std::stringstream;

if (actual == expected)
{ // NaN safe
if (actual == expected) // NaN safe
{
handle_passed (name);
}
else
Expand Down Expand Up @@ -174,8 +174,8 @@ class Unit_Test
using std::abs;
using std::stringstream;

if (abs (actual - expected) <= tolerance)
{ // NaN safe
if (abs (actual - expected) <= tolerance) // NaN safe
{
handle_passed (name);
}
else
Expand Down

0 comments on commit 91fbd63

Please sign in to comment.