We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f340920 commit b342e88Copy full SHA for b342e88
Samples/JavaDependencySampleApp/Sources/JavaDependencySample/OrgAndrejsJsonTests.swift
@@ -25,9 +25,10 @@ enum OrgAndrejsJsonTests {
25
let json = Json(#"{"host": "localhost", "port": 80}"#)
26
27
precondition(json.hasOwnProperty("port"))
28
+ let port: JavaInteger = json.get("port")!
29
- print(json.get("port").toString())
30
- precondition(json.get("port").as(JavaInteger.self)!.intValue() == 80)
+ precondition(port.toString() == "80")
31
+ precondition(port.intValue() == 80)
32
33
print("Reading swift-java.config inside OrgAndrejsJson folder...")
34
0 commit comments