mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Bump the RustSDK to 25.01.27, adopt the new emoji boosting API. (#3708)
* Bump the RustSDK to v27.01.22, adopt the new emoji boosting API. * SDK version 25.01.22 😅 --------- Co-authored-by: Doug <douglase@element.io>
This commit is contained in:
@@ -1,40 +0,0 @@
|
||||
//
|
||||
// Copyright 2023, 2024 New Vector Ltd.
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
// Please see LICENSE files in the repository root for full details.
|
||||
//
|
||||
|
||||
import XCTest
|
||||
|
||||
@testable import ElementX
|
||||
|
||||
class EmojiDetectionTests: XCTestCase {
|
||||
func testEmojiDetection() {
|
||||
XCTAssertTrue("👨👩👦".containsOnlyEmoji)
|
||||
XCTAssertTrue("1️⃣".containsOnlyEmoji)
|
||||
XCTAssertTrue("🚀".containsOnlyEmoji)
|
||||
XCTAssertTrue("👳🏾♂️".containsOnlyEmoji)
|
||||
XCTAssertTrue("🪩".containsOnlyEmoji)
|
||||
|
||||
XCTAssertTrue("👨👩👦1️⃣🚀👳🏾♂️🪩".containsOnlyEmoji)
|
||||
|
||||
XCTAssertFalse(" 👨👩👦".containsOnlyEmoji)
|
||||
XCTAssertFalse(" 👨👩👦 ".containsOnlyEmoji)
|
||||
XCTAssertFalse("👨👩👦 ".containsOnlyEmoji)
|
||||
XCTAssertFalse("Ciao 👨👩👦 peeps".containsOnlyEmoji)
|
||||
|
||||
XCTAssertFalse("0".containsOnlyEmoji)
|
||||
XCTAssertFalse("1".containsOnlyEmoji)
|
||||
XCTAssertFalse("5".containsOnlyEmoji)
|
||||
XCTAssertFalse("000".containsOnlyEmoji)
|
||||
|
||||
XCTAssertTrue("👍".containsOnlyEmoji)
|
||||
XCTAssertTrue("🫱🏼🫲🏾".containsOnlyEmoji)
|
||||
XCTAssertFalse("🙂 ".containsOnlyEmoji)
|
||||
XCTAssertFalse("Hello 👋".containsOnlyEmoji)
|
||||
XCTAssertFalse("Thanks".containsOnlyEmoji)
|
||||
|
||||
XCTAssertFalse("0*".containsOnlyEmoji)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user