unicode: add unit test for normalize

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
2023-12-08 14:21:52 +01:00
parent 6d1d9bd1b8
commit bb9988933e
2 changed files with 14 additions and 0 deletions

View File

@@ -87,6 +87,18 @@ namespace UnitTests
"",
win1250_to_utf8.convert(nullptr, 0).c_str());
}
TEST_METHOD(normalize)
{
#ifdef _WIN32
Assert::AreEqual(
L"tést",
stdex::normalize(L"tést").c_str());
Assert::AreEqual(
L"",
stdex::normalize(nullptr, 0).c_str());
#endif
}
};
}