| 6 | #include "util/numbers.hpp" |
| 7 | |
| 8 | TEST(Util_IsDecimalDigit, ReturnsFalseWhenNotDigit) |
| 9 | { |
| 10 | for (const auto [upper, lower] : alphabet) |
| 11 | { |
| 12 | ASSERT_FALSE(Util::impl::IsDecimalDigit(upper)); |
| 13 | ASSERT_FALSE(Util::impl::IsDecimalDigit(lower)); |
| 14 | } |
| 15 | |
| 16 | for (const auto character : specialCharacters) |
| 17 | { |
| 18 | ASSERT_FALSE(Util::impl::IsDecimalDigit(character)); |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | TEST(Util_IsDecimalDigit, ReturnsTrueWhenDigit) |
| 23 | { |
nothing calls this directly
no test coverage detected