Skip to content

Commit 84d3251

Browse files
committed
Chore: add type test for CodeBlockItemSyntax
1 parent cf128b1 commit 84d3251

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/SwiftSyntaxBuilderTest/StringInterpolationTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,14 +462,14 @@ final class StringInterpolationTests: XCTestCase {
462462
}
463463

464464
func testCodeBlockItemInterpolation() {
465-
let codeBlock = CodeBlockItemSyntax(
465+
let codeBlock: CodeBlockItemSyntax =
466466
"""
467467
func foo() {
468468
return bar
469469
}
470470
"""
471-
)
472471

472+
XCTAssertTrue(codeBlock.is(CodeBlockItemSyntax.self))
473473
AssertStringsEqualWithDiff(
474474
codeBlock.description,
475475
"""

0 commit comments

Comments
 (0)