From 55199ae58e076afb43fe18f856ee07cbce27caf6 Mon Sep 17 00:00:00 2001 From: or-else Date: Mon, 10 Jul 2023 18:17:07 +0300 Subject: [PATCH] added another compound emoji test --- TinodeSDKTests/DraftyTest.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/TinodeSDKTests/DraftyTest.swift b/TinodeSDKTests/DraftyTest.swift index 25849cdb..4957cb69 100644 --- a/TinodeSDKTests/DraftyTest.swift +++ b/TinodeSDKTests/DraftyTest.swift @@ -109,6 +109,11 @@ class DraftyTest: XCTestCase { d2 = Drafty(text: "first 😀 line second line", fmt: [Style(tp: "BR", at: 12, len: 1), Style(tp: "ST", at: 20, len: 4)], ent: nil) XCTAssertEqual(d1, d2, "String 13 - two lines with emoji in the first and style in the second") + + // String 14: another compound Unicode test + d1 = Drafty(content: "🔴Hello🔴\n🟠Hello🟠") + d2 = Drafty(text: "🔴Hello🔴 🟠Hello🟠", fmt: [Style(tp: "BR", at: 7, len: 1)], ent: nil) + XCTAssertEqual(d1, d2, "String 14 - two lines with compound emojis") } func testShorten() {