mirror of
https://github.com/HaishinKit/HaishinKit.swift.git
synced 2026-05-07 20:12:28 +00:00
14 lines
384 B
Swift
14 lines
384 B
Swift
import Foundation
|
|
import Testing
|
|
|
|
@testable import RTMPHaishinKit
|
|
|
|
@Suite struct FoundationExtensionTest {
|
|
@Test func nSURL() {
|
|
let url = URL(string: "http://localhost/foo/bar?hello=world!!&foo=bar")!
|
|
let dictionary: [String: String] = url.dictionaryFromQuery()
|
|
#expect(dictionary["hello"] == "world!!")
|
|
#expect(dictionary["foo"] == "bar")
|
|
}
|
|
}
|