Skip to content

Commit

Permalink
added another compound emoji test
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Jul 10, 2023
1 parent ed07c11 commit 55199ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions TinodeSDKTests/DraftyTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 55199ae

Please # to comment.