mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-08 19:53:40 -04:00
Guard macOS filename normalization test
This commit is contained in:
parent
d936d3fe3c
commit
d7cb523e75
1 changed files with 3 additions and 4 deletions
|
|
@ -25,13 +25,12 @@ TEST_CASE("SplitFilename83 Sanity", "[common]") {
|
|||
REQUIRE(std::memcmp(extension.data(), expected_extension.data(), extension.size()) == 0);
|
||||
}
|
||||
|
||||
#if defined(__APPLE__)
|
||||
|
||||
TEST_CASE("NormalizeNFDToNFC Sanity", "[common]") {
|
||||
const std::string decomposed = "i\xCC\x81";
|
||||
const std::string composed = "\xC3\xAD";
|
||||
|
||||
#if defined(__APPLE__)
|
||||
REQUIRE(Common::NormalizeNFDToNFC(decomposed) == composed);
|
||||
#else
|
||||
REQUIRE(Common::NormalizeNFDToNFC(decomposed) == decomposed);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
Loading…
Add table
Reference in a new issue