File tree 1 file changed +3
-3
lines changed
Tests/MarkdownTests/Parsing
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1229,7 +1229,7 @@ class BlockDirectiveArgumentParserTests: XCTestCase {
1229
1229
"""
1230
1230
1231
1231
let document = Document ( parsing: source, options: . parseBlockDirectives)
1232
- _ = try XCTUnwrap ( document. child ( at: 0 ) as? BlockDirective )
1232
+ XCTAssertTrue ( document. child ( at: 0 ) is BlockDirective )
1233
1233
let expected = #"""
1234
1234
Document @1:1-4:2
1235
1235
└─ BlockDirective @1:1-4:2 name: "Image"
@@ -1248,7 +1248,7 @@ import Testing
1248
1248
struct _BlockDirectiveArgumentParserTests {
1249
1249
@Test (
1250
1250
" 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 " )
1252
1252
)
1253
1253
func directiveMultiLineWithoutContentParsing( ) throws {
1254
1254
let source = #"""
@@ -1258,7 +1258,7 @@ struct _BlockDirectiveArgumentParserTests {
1258
1258
)
1259
1259
"""#
1260
1260
let document = Document ( parsing: source, options: . parseBlockDirectives)
1261
- _ = try #require ( document. child ( at: 0 ) as? BlockDirective )
1261
+ #expect ( document. child ( at: 0 ) is BlockDirective )
1262
1262
let expected = #"""
1263
1263
Document @1:1-4:2
1264
1264
└─ BlockDirective @1:1-4:2 name: "Image"
You can’t perform that action at this time.
0 commit comments