Skip to content

Commit

Permalink
Update test_type_traits.cpp
Browse files Browse the repository at this point in the history
Use CHECK_CLOSE instead of CHECK for equality
  • Loading branch information
tigran2008 authored Jun 10, 2024
1 parent 8fc6084 commit 0cfa5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_type_traits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1330,6 +1330,6 @@ namespace

//*************************************************************************
TEST(test_type_identity) {
CHECK(type_identity_test_add(1.5f, 2) == 3.5f);
CHECK_CLOSE(type_identity_test_add(1.5f, 2), 3.5f, 0.01f);
}
}

0 comments on commit 0cfa5bc

Please sign in to comment.