diff --git a/tests/cell.cpp b/tests/cell.cpp index 28299714b..a321ce7ba 100644 --- a/tests/cell.cpp +++ b/tests/cell.cpp @@ -54,9 +54,16 @@ TEST_CASE("Cell") { // test combining characters and ZWJs SUBCASE("MultiglyphWidth") { +#ifdef __linux__ CHECK(2 == ncstrwidth("\U0001F471")); CHECK(2 == ncstrwidth("\U0001F471\u200D")); CHECK(3 == ncstrwidth("\U0001F471\u200D\u2640")); // *not* a single EGC! +#else + // FreeBSD doesn't think these wide + CHECK(1 == ncstrwidth("\U0001F471")); + CHECK(1 == ncstrwidth("\U0001F471\u200D")); + CHECK(2 == ncstrwidth("\U0001F471\u200D\u2640")); // *not* a single EGC! +#endif } SUBCASE("SetItalic") {