17 lines
507 B
Swift
17 lines
507 B
Swift
import XCTest
|
|
@testable import MatrixRustComponentsSwift
|
|
|
|
final class MatrixRustComponentsSwiftTests: XCTestCase {
|
|
func testExample() throws {
|
|
do {
|
|
let client = try loginNewClient(basePath: "", username: "", password: "")
|
|
let displayName = try client.displayName()
|
|
print("Display name: \(displayName)")
|
|
} catch ClientError.generic(let msg) {
|
|
print("Failed with message \(msg)")
|
|
} catch {
|
|
fatalError()
|
|
}
|
|
}
|
|
}
|