mirror of
https://github.com/signalapp/libsignal.git
synced 2026-04-26 01:35:22 +02:00
swift-format is owned by the Swift project and is generally less opinionated than swiftformat (but better at formatting to a limited line length).
21 lines
554 B
Swift
21 lines
554 B
Swift
//
|
|
// Copyright 2024 Signal Messenger, LLC.
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
//
|
|
|
|
import Foundation
|
|
import SignalFfi
|
|
import XCTest
|
|
|
|
@testable import LibSignalClient
|
|
|
|
final class NativeTests: XCTestCase {
|
|
// These testing endpoints aren't generated in device builds, to save on code size.
|
|
#if !os(iOS) || targetEnvironment(simulator)
|
|
func testTestingFnsAreAvailable() async throws {
|
|
let output = try invokeFnReturningInteger(fn: SignalFfi.signal_test_only_fn_returns_123)
|
|
XCTAssertEqual(output, 123)
|
|
}
|
|
#endif
|
|
}
|