MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / TEST

Function TEST

Tests/util/numbers.cpp:8–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "util/numbers.hpp"
7
8TEST(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
22TEST(Util_IsDecimalDigit, ReturnsTrueWhenDigit)
23{

Callers

nothing calls this directly

Calls 5

IsDecimalDigitFunction · 0.85
IsUpperHexDigitFunction · 0.85
IsLowerHexDigitFunction · 0.85
ParseHexNumberFunction · 0.85
ExpandOneHexDigitByteFunction · 0.85

Tested by

no test coverage detected