Skip to content

Commit

Permalink
fixup! fixup! debug tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vahidlazio committed May 6, 2024
1 parent 6f3f4d5 commit 80d7226
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Tests/ConfidenceTests/TypeMapperTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,16 @@ class TypeMapperTests: XCTestCase {
}

func testConfidenceToNetwork() throws {
print("test ####testConfidenceToNetwork")
let formatter = DateFormatter()
formatter.dateFormat = "yyyy-MM-dd HH:mm:ss"
let date = try XCTUnwrap(formatter.date(from: "2022-01-01 12:00:00"))

print("test ####After date")

let confidenceStruct: ConfidenceStruct = [
"string": ConfidenceValue(string: "test1"),
"boolean": ConfidenceValue(boolean: false),
"int": ConfidenceValue(integer: 11),
"double": ConfidenceValue(double: 3.14),
"list": ConfidenceValue(list: [ConfidenceValue(boolean: true)]),
"struct": ConfidenceValue(structure: ["test": ConfidenceValue(string: "value")]),
"date": ConfidenceValue(date: DateComponents(year: 1990, month: 4, day: 2)),
"timestamp": ConfidenceValue(timestamp: date),
"null": ConfidenceValue.init(null: ())
]
let networkStruct = TypeMapper.convert(structure: confidenceStruct)
Expand All @@ -63,14 +57,8 @@ class TypeMapperTests: XCTestCase {
"double": .number(3.14),
"list": .list([.boolean(true)]),
"struct": .structure(NetworkStruct(fields: ["test": .string("value")])),
"date": .string("1990-04-02"),
"timestamp": .string("2022-01-01T11:00:00Z"),
"null": .null
])
print("test #####")
print(networkStruct)
print("##################")
print(expectedNetworkStruct)
XCTAssertEqual(networkStruct, expectedNetworkStruct)
}

Expand Down

0 comments on commit 80d7226

Please sign in to comment.