File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Tests/MarkdownTests/Parsing Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1229,7 +1229,7 @@ class BlockDirectiveArgumentParserTests: XCTestCase {
12291229 """
12301230
12311231 let document = Document ( parsing: source, options: . parseBlockDirectives)
1232- _ = try XCTUnwrap ( document. child ( at: 0 ) as? BlockDirective )
1232+ XCTAssertTrue ( document. child ( at: 0 ) is BlockDirective )
12331233 let expected = #"""
12341234 Document @1:1-4:2
12351235 └─ BlockDirective @1:1-4:2 name: "Image"
@@ -1248,7 +1248,7 @@ import Testing
12481248struct _BlockDirectiveArgumentParserTests {
12491249 @Test (
12501250 " Directive MultiLine WithoutContent Parsing " ,
1251- . bug( " https://github.com/swiftlang/swift-markdown/issues " , id: " #152 " , " Verify fix of #152 " )
1251+ . bug( " https://github.com/swiftlang/swift-markdown/issues/152 " , id: " #152 " , " Verify fix of #152 " )
12521252 )
12531253 func directiveMultiLineWithoutContentParsing( ) throws {
12541254 let source = #"""
@@ -1258,7 +1258,7 @@ struct _BlockDirectiveArgumentParserTests {
12581258 )
12591259 """#
12601260 let document = Document ( parsing: source, options: . parseBlockDirectives)
1261- _ = try #require ( document. child ( at: 0 ) as? BlockDirective )
1261+ #expect ( document. child ( at: 0 ) is BlockDirective )
12621262 let expected = #"""
12631263 Document @1:1-4:2
12641264 └─ BlockDirective @1:1-4:2 name: "Image"
You can’t perform that action at this time.
0 commit comments