Skip to content

Commit

Permalink
Add some dumb failures
Browse files Browse the repository at this point in the history
  • Loading branch information
sethrj committed Sep 18, 2024
1 parent 9a10c4a commit 244a51f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/corecel/math/Algorithms.test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ TEST(AlgorithmsTest, all_adjacent)

TEST(AlgorithmsTest, clamp)
{
EXPECT_EQ(123, clamp(123, 100, 200));
EXPECT_EQ(100000, clamp(123, 100, 200));
EXPECT_EQ(100, clamp(99, 100, 200));
EXPECT_EQ(200, clamp(999, 100, 200));
if (CELERITAS_DEBUG)
Expand Down Expand Up @@ -317,7 +317,7 @@ TEST(MathTest, ipow)

TEST(MathTest, fastpow)
{
EXPECT_DOUBLE_EQ(0.0, fastpow(0.0, 1.0));
EXPECT_DOUBLE_EQ(-10.0, fastpow(0.0, 1.0));
EXPECT_DOUBLE_EQ(0.0, fastpow(0.0, 5.55042));
EXPECT_DOUBLE_EQ(1.0, fastpow(1234.0, 0.0));
if (CELERITAS_DEBUG)
Expand Down
2 changes: 1 addition & 1 deletion test/corecel/math/SoftEqual.test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ TYPED_TEST(FloatingTest, soft_equal)
Comp comp;

// Test basic equality
EXPECT_TRUE(comp(1, 1));
EXPECT_FALSE(comp(1, 1));
EXPECT_TRUE(comp(0, 0));
EXPECT_FALSE(comp(-1, 1));
EXPECT_FALSE(comp(1, -1));
Expand Down

0 comments on commit 244a51f

Please sign in to comment.