Skip to content

Commit

Permalink
Fix code review suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan Grynspan <[email protected]>
  • Loading branch information
Kyle-Ye and grynspan committed Sep 17, 2024
1 parent bef6d95 commit 9dde0ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/MarkdownTests/Parsing/BlockDirectiveParserTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,7 @@ class BlockDirectiveArgumentParserTests: XCTestCase {
"""

let document = Document(parsing: source, options: .parseBlockDirectives)
_ = try XCTUnwrap(document.child(at: 0) as? BlockDirective)
XCTAssertTrue(document.child(at: 0) is BlockDirective)
let expected = #"""
Document @1:1-4:2
└─ BlockDirective @1:1-4:2 name: "Image"
Expand All @@ -1248,7 +1248,7 @@ import Testing
struct _BlockDirectiveArgumentParserTests {
@Test(
"Directive MultiLine WithoutContent Parsing",
.bug("https://github.com/swiftlang/swift-markdown/issues" ,id: "#152", "Verify fix of #152")
.bug("https://github.com/swiftlang/swift-markdown/issues/152" ,id: "#152", "Verify fix of #152")
)
func directiveMultiLineWithoutContentParsing() throws {
let source = #"""
Expand All @@ -1258,7 +1258,7 @@ struct _BlockDirectiveArgumentParserTests {
)
"""#
let document = Document(parsing: source, options: .parseBlockDirectives)
_ = try #require(document.child(at: 0) as? BlockDirective)
#expect(document.child(at: 0) is BlockDirective)
let expected = #"""
Document @1:1-4:2
└─ BlockDirective @1:1-4:2 name: "Image"
Expand Down

0 comments on commit 9dde0ad

Please sign in to comment.