Skip to content

Commit 9dde0ad

Browse files
Kyle-Yegrynspan
andcommitted
Fix code review suggestion
Co-authored-by: Jonathan Grynspan <[email protected]>
1 parent bef6d95 commit 9dde0ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/MarkdownTests/Parsing/BlockDirectiveParserTests.swift

+3-3
Original file line numberDiff line numberDiff 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
12481248
struct _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"

0 commit comments

Comments
 (0)