Integrate Refactor solver sources and dual MSVC CMake builds

This commit is contained in:
KOKO\Mimi
2026-10-18 02:10:51 +09:00
parent 7ee32e5837
commit 12d51480de
218 changed files with 17842 additions and 9689 deletions
+15
View File
@@ -17,6 +17,21 @@ TEST(Ascii, LowercasesOnlyAsciiUppercaseBytes) {
EXPECT_EQ(fesa::AsciiLower(non_ascii), non_ascii);
}
TEST(Ascii, UppercaseCanonicalizationPreservesEveryOtherByteAndSourceText) {
std::string source;
std::string expected;
for (unsigned int byte = 0U; byte < 256U; ++byte) {
source.push_back(static_cast<char>(byte));
expected.push_back(
static_cast<char>(byte >= 97U && byte <= 122U ? byte - 32U : byte));
}
const std::string original = source;
EXPECT_EQ(fesa::AsciiUppercase(source), expected);
EXPECT_EQ(source, original);
EXPECT_TRUE(fesa::AsciiUppercase("").empty());
EXPECT_EQ(fesa::AsciiUppercase("Shell-01"), "SHELL-01");
}
TEST(Ascii, ComparesNamesWithoutLocaleOrUnicodeFolding) {
EXPECT_TRUE(fesa::AsciiCaseInsensitiveEquals("Beam-1", "bEaM-1"));
EXPECT_FALSE(fesa::AsciiCaseInsensitiveEquals("Beam-1", "Beam-10"));