MCPcopy Create free account
hub / github.com/catboost/catboost / TestIsLowerStr

Method TestIsLowerStr

util/charset/wide_ut.cpp:1099–1114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1097 }
1098
1099 void TestIsLowerStr() {
1100 UNIT_ASSERT(IsLower(TWtringBuf()));
1101 UNIT_ASSERT(IsLower(UTF8ToWide("")));
1102 UNIT_ASSERT(IsLower(UTF8ToWide("test")));
1103 UNIT_ASSERT(IsLower(UTF8ToWide("тест"))); // "тест" is "test" in russian (cyrrilic)
1104 UNIT_ASSERT(IsLower(UTF8ToWide("тест тест")));
1105 UNIT_ASSERT(IsLower(UTF8ToWide("тест100500")));
1106
1107 UNIT_ASSERT(!IsLower(UTF8ToWide("Test")));
1108 UNIT_ASSERT(!IsLower(UTF8ToWide("tesT")));
1109 UNIT_ASSERT(!IsLower(UTF8ToWide("tEst")));
1110
1111 UNIT_ASSERT(!IsLower(UTF8ToWide("Тест")));
1112 UNIT_ASSERT(!IsLower(UTF8ToWide("теСт")));
1113 UNIT_ASSERT(!IsLower(UTF8ToWide("тесТ")));
1114 }
1115
1116 void TestIsUpperStr() {
1117 UNIT_ASSERT(IsUpper(TWtringBuf()));

Callers

nothing calls this directly

Calls 2

IsLowerFunction · 0.70
UTF8ToWideFunction · 0.70

Tested by

no test coverage detected