mirror of
https://github.com/HaishinKit/HaishinKit.swift.git
synced 2026-05-07 20:12:28 +00:00
22 lines
560 B
Swift
22 lines
560 B
Swift
import Foundation
|
|
import Testing
|
|
|
|
@testable import RTMPHaishinKit
|
|
|
|
@Suite struct RTMPStatusTests {
|
|
@Test func dynamicMemeberLookup() {
|
|
let data: AMFObject = [
|
|
"level": "status",
|
|
"code": "NetConnection.Connect.Success",
|
|
"description": "Connection succeeded.",
|
|
"objectEncoding": 0.0,
|
|
"hello": "world!!"
|
|
]
|
|
guard let status = RTMPStatus(data) else {
|
|
return
|
|
}
|
|
#expect("world!!" == status.hello)
|
|
#expect(0.0 == status.objectEncoding)
|
|
}
|
|
}
|