Skip to content

Commit

Permalink
Update unit tests for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Mar 3, 2024
1 parent 9fa3289 commit f987e23
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/tetests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,13 +261,13 @@ TEST_CASE("Main tests", "[main]")
CHECK_THAT(tep.evaluate("asin sin (-0.5)"), Catch::Matchers::WithinRel(-0.5, 0.00001));
CHECK_THAT(tep.evaluate("(asin sin (-0.5))"), Catch::Matchers::WithinRel(-0.5, 0.00001));

CHECK(tep.evaluate("log10 1000") == 3);
CHECK(tep.evaluate("log10 1e3") == 3);
CHECK(tep.evaluate("log10 1000") == 3);
CHECK(tep.evaluate("log10 1e3") == 3);
CHECK(tep.evaluate("log10(1000)") == 3);
CHECK(tep.evaluate("log10(1e3)") == 3);
CHECK(tep.evaluate("log10 1.0e3") == 3);
CHECK_THAT(tep.evaluate("log10 1000"), Catch::Matchers::WithinRel(3, 0.00001));
CHECK_THAT(tep.evaluate("log10 1e3"), Catch::Matchers::WithinRel(3, 0.00001));
CHECK_THAT(tep.evaluate("log10 1000"), Catch::Matchers::WithinRel(3, 0.00001));
CHECK_THAT(tep.evaluate("log10 1e3"), Catch::Matchers::WithinRel(3, 0.00001));
CHECK_THAT(tep.evaluate("log10(1000)"), Catch::Matchers::WithinRel(3, 0.00001));
CHECK_THAT(tep.evaluate("log10(1e3)"), Catch::Matchers::WithinRel(3, 0.00001));
CHECK_THAT(tep.evaluate("log10 1.0e3"), Catch::Matchers::WithinRel(3, 0.00001));
#ifndef TE_BITWISE_OPERATORS
CHECK_THAT(tep.evaluate("10^5*5e-5"), Catch::Matchers::WithinRel(5, 0.00001));
#endif
Expand Down

0 comments on commit f987e23

Please sign in to comment.