Skip to content

Commit 8c97620

Browse files
committed
- missing fix added :)
1 parent 92ca70f commit 8c97620

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RESTAPITests/RESTAPIComponentTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class RESTAPIComponentTests: XCTestCase {
2121

2222
func testDeepComplexQuery() {
2323
let testDict = ["level_0": ["level1_0": "key1", "level1_1": ["array1", "array2"]]] as [String : Any]
24-
let desiredQueryString = ["test[level_0][level1_0]=key1", "test[level_0][level1_1][]=array1", "test[level_0][level1_1][]=array2"]
24+
let desiredQueryString = ["test[level_0][level1_0]=key1", "test[level_0][level1_1][]=array1", "test[level_0][level1_1][]=array2"].sorted()
2525
let query = testDict.queryString(forKey: "test").map { it in "\(it.name)=\(it.value ?? "")"}.sorted()
2626
XCTAssertEqual(desiredQueryString, query)
2727
}

0 commit comments

Comments
 (0)