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 5357b07 commit 0a8bbe6Copy full SHA for 0a8bbe6
Tests/XMLCoderTests/Minimal/BoxTreeTests.swift
@@ -28,10 +28,12 @@ class BoxTreeTests: XCTestCase {
28
elements: [e1, e2],
29
attributes: []
30
)
31
-
32
- let boxTree = try XCTUnwrap(root.transformToBoxTree() as? KeyedBox)
33
- let foo = try XCTUnwrap(boxTree.elements["foo"])
34
+ // FIXME: Use `XCTUnwrap` when commonly available
+ guard let boxTree = root.transformToBoxTree() as? KeyedBox else {
+ XCTFail("boxtTree is not a KeyedBox");
+ return
35
+ }
36
+ let foo = boxTree.elements["foo"]
37
XCTAssertEqual(foo.count, 2)
38
}
39
0 commit comments