Skip to content

Commit

Permalink
Sanity check std::clamp
Browse files Browse the repository at this point in the history
  • Loading branch information
JarrettSJohnson committed Jan 30, 2024
1 parent f220970 commit 5d6c52b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layerCTest/Test_Algorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

TEST_CASE("Clamp", "[Algorithm]")
{
REQUIRE(pymol::clamp(-1, 0, 10) == 0);
REQUIRE(pymol::clamp(3, 0, 10) == 3);
REQUIRE(pymol::clamp(13, 0, 10) == 10);
REQUIRE(std::clamp(-1, 0, 10) == 0);
REQUIRE(std::clamp(3, 0, 10) == 3);
REQUIRE(std::clamp(13, 0, 10) == 10);
}

TEST_CASE("Equal", "[Algorithm]")
Expand Down

0 comments on commit 5d6c52b

Please sign in to comment.