From d7cb523e75d5567c84619ea559931e987ba59852 Mon Sep 17 00:00:00 2001 From: Rodrigo Iglesias <8595185+RigleGit@users.noreply.github.com> Date: Wed, 29 Apr 2026 22:52:22 +0200 Subject: [PATCH] Guard macOS filename normalization test --- src/tests/common/file_util.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/tests/common/file_util.cpp b/src/tests/common/file_util.cpp index ec3f86d02..dff8ca303 100644 --- a/src/tests/common/file_util.cpp +++ b/src/tests/common/file_util.cpp @@ -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 \ No newline at end of file