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

Function TEST

Tests/util/strings.cpp:17–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17TEST(Util_IsAscii, ReturnsTrueWhenAscii)
18{
19 for (const auto number : numbers)
20 {
21 ASSERT_TRUE(Util::IsAscii(number));
22 }
23
24 for (const auto [upper, lower] : alphabet)
25 {
26 ASSERT_TRUE(Util::IsAscii(upper));
27 ASSERT_TRUE(Util::IsAscii(lower));
28 }
29
30 for (const auto character : specialCharacters)
31 {
32 ASSERT_TRUE(Util::IsAscii(character));
33 }
34}
35
36TEST(Util_IsAscii, ReturnsFalseWhenNotAscii)
37{

Callers

nothing calls this directly

Calls 4

IsAsciiFunction · 0.85
AsciiToUpperFunction · 0.85
TrimFunction · 0.85
TrimInplaceFunction · 0.85

Tested by

no test coverage detected