mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-02-20 00:05:33 -05:00
Co-authored-by: Stefan Ceriu <stefan.ceriu@gmail.com> Co-authored-by: Benjamin Kampmann <ben.kampmann@gmail.com>
22 lines
548 B
Swift
22 lines
548 B
Swift
//
|
|
// MatrixRustSDKTests.swift
|
|
// MatrixRustSDKTests
|
|
//
|
|
// Created by Stefan Ceriu on 08.02.2022.
|
|
//
|
|
|
|
import XCTest
|
|
@testable import MatrixRustSDK
|
|
|
|
class MatrixRustSDKTests: XCTestCase {
|
|
func testExample() throws {
|
|
do {
|
|
let _ = try loginNewClient(basePath: "", username: "test", password: "test")
|
|
} catch ClientError.generic(let message) {
|
|
XCTAssertNotNil(message.range(of: "Read-only file system"))
|
|
} catch {
|
|
XCTFail("Not expecting any other kind of exception")
|
|
}
|
|
}
|
|
}
|