Files
HaishinKit.swift/RTMPHaishinKit/Tests/Extension/Foundation+ExtensionTests.swift
2025-07-13 12:43:53 +09:00

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")
}
}