| 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())); |
nothing calls this directly
no test coverage detected