We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c75084 commit e526349Copy full SHA for e526349
tests/static_checks.cpp
@@ -54,11 +54,11 @@ TEST_CASE("Fixed::FRACTIONAL_MIN == Fixed::DECIMAL_MIN - (1 - Fixed::FRACTIONAL_
54
}
55
56
TEST_CASE("Fixed::MAX() == Max 32-bit signed integer") {
57
- STATIC_REQUIRE(Fixed::MAX() == Fixed(INT_MAX));
+ STATIC_REQUIRE(Fixed::MAX() == Fixed(std::numeric_limits<Fixed::UnderlyingType>::max()));
58
59
60
TEST_CASE("Fixed::MIN() == Min 32-bit signed integer") {
61
- STATIC_REQUIRE(Fixed::MIN() == Fixed(INT_MIN));
+ STATIC_REQUIRE(Fixed::MIN() == Fixed(std::numeric_limits<Fixed::UnderlyingType>::min()));
62
63
64
TEST_CASE("typeof(Fixed::MAX()) == Fixed") {
0 commit comments