Skip to content

Commit 55199ae

Browse files
committed
added another compound emoji test
1 parent ed07c11 commit 55199ae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

TinodeSDKTests/DraftyTest.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ class DraftyTest: XCTestCase {
109109
d2 = Drafty(text: "first 😀 line second line",
110110
fmt: [Style(tp: "BR", at: 12, len: 1), Style(tp: "ST", at: 20, len: 4)], ent: nil)
111111
XCTAssertEqual(d1, d2, "String 13 - two lines with emoji in the first and style in the second")
112+
113+
// String 14: another compound Unicode test
114+
d1 = Drafty(content: "🔴Hello🔴\n🟠Hello🟠")
115+
d2 = Drafty(text: "🔴Hello🔴 🟠Hello🟠", fmt: [Style(tp: "BR", at: 7, len: 1)], ent: nil)
116+
XCTAssertEqual(d1, d2, "String 14 - two lines with compound emojis")
112117
}
113118

114119
func testShorten() {

0 commit comments

Comments
 (0)