This repository has been archived by the owner on Jun 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move signal core kit tests from ios app repo to signal core kit
- Loading branch information
1 parent
44d9256
commit b6640fd
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// Copyright 2024 Signal Messenger, LLC | ||
// SPDX-License-Identifier: AGPL-3.0-only | ||
// | ||
|
||
import Foundation | ||
import XCTest | ||
|
||
@testable import SignalCoreKit | ||
|
||
class NSObjectTest: XCTestCase { | ||
func testObjectComparison() { | ||
let yes: NSNumber = true | ||
let no: NSNumber = false | ||
XCTAssertTrue(NSObject.isNullableObject(nil, equalTo: nil)) | ||
XCTAssertFalse(NSObject.isNullableObject(yes, equalTo: nil)) | ||
XCTAssertFalse(NSObject.isNullableObject(nil, equalTo: yes)) | ||
XCTAssertFalse(NSObject.isNullableObject(yes, equalTo: no)) | ||
XCTAssertTrue(NSObject.isNullableObject(yes, equalTo: yes)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters