Skip to content

Commit 3870fae

Browse files
committed
Add test case for Tag.baz
1 parent 35fe4aa commit 3870fae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Tests/SourceKitLSPTests/DocumentTestDiscoveryTests.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@ final class DocumentTestDiscoveryTests: XCTestCase {
642642
extension Tag {
643643
@Tag static var foo: Self
644644
@Tag static var bar: Self
645+
@Tag static var baz: Self
645646
646647
struct Nested {
647648
@Tag static var foo: Tag
@@ -650,7 +651,7 @@ final class DocumentTestDiscoveryTests: XCTestCase {
650651
651652
1️⃣@Suite(.tags("Suites"))
652653
struct MyTests {
653-
2️⃣@Test(.tags(.foo, Nested.foo, Testing.Tag.bar))
654+
2️⃣@Test(.tags(.foo, Nested.foo, Testing.Tag.bar, Tag.baz))
654655
func oneIsTwo() {
655656
#expect(1 == 2)
656657
}3️⃣
@@ -677,7 +678,7 @@ final class DocumentTestDiscoveryTests: XCTestCase {
677678
style: TestStyle.swiftTesting,
678679
location: Location(uri: uri, range: positions["2️⃣"]..<positions["3️⃣"]),
679680
children: [],
680-
tags: [TestTag(id: "foo"), TestTag(id: "Nested.foo"), TestTag(id: "bar")]
681+
tags: [TestTag(id: "foo"), TestTag(id: "Nested.foo"), TestTag(id: "bar"), TestTag(id: "baz")]
681682
)
682683
],
683684
tags: [TestTag(id: "Suites")]

0 commit comments

Comments
 (0)