From 56bcb1cf55eb26abd455f9782f899b5c3b0ad59a Mon Sep 17 00:00:00 2001 From: hborawski Date: Fri, 27 Sep 2024 13:52:26 -0700 Subject: [PATCH] nest in another dictionary to trigger encoding case --- ios/core/Tests/Types/Generic/AnyTypeTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/core/Tests/Types/Generic/AnyTypeTests.swift b/ios/core/Tests/Types/Generic/AnyTypeTests.swift index a8879f04a..4b5daef87 100644 --- a/ios/core/Tests/Types/Generic/AnyTypeTests.swift +++ b/ios/core/Tests/Types/Generic/AnyTypeTests.swift @@ -251,7 +251,7 @@ class AnyTypeTests: XCTestCase { XCTAssertEqual("[1,2]", doEncode(AnyType.numberArray(data: [1, 2]))) XCTAssertEqual("[false,true]", doEncode(AnyType.booleanArray(data: [false, true]))) XCTAssertEqual("{\"a\":false,\"b\":1}", doEncode(AnyType.anyDictionary(data: ["a": false, "b": 1]))) - XCTAssertEqual("{\"key\":[{\"nestedKey\":\"nestedValue\"}],\"key2\":1}", doEncode(AnyType.anyDictionary(data: ["key2": 1, "key": AnyType.anyArray(data: [["nestedKey": "nestedValue"]])]))) + XCTAssertEqual("{\"container\":{\"key\":[{\"nestedKey\":\"nestedValue\"}],\"key2\":1}}", doEncode(AnyType.anyDictionary(data: ["container": AnyType.anyDictionary(data: ["key2": 1, "key": AnyType.anyArray(data: [["nestedKey": "nestedValue"]])])]))) } func doEncode(_ data: AnyType) -> String? {