Skip to content

Commit 82ad5dd

Browse files
committed
Optimize Swift 6 check code
1 parent ec8ca11 commit 82ad5dd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Tests/OpenGraphCompatibilityTests/Attribute/Attribute/PointerOffsetTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ struct PointerOffsetTests {
4242
#expect(invalidPointer == UnsafeMutablePointer(bitPattern: stride))
4343
}
4444

45-
#if canImport(Darwin)
46-
@Test(.bug("https://github.com/OpenSwiftUIProject/OpenGraph/issues", id: 70, "Verify fix"))
45+
#if compiler(>=6.0)
46+
@Test(.bug("https://github.com/OpenSwiftUIProject/OpenGraph/issues/70", id: 70, "Verify fix of #70"))
4747
func ofAndOffset() {
4848
struct Empty {
4949
var value: Void

Tests/OpenGraphCompatibilityTests/Scaffolding.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import Testing
66
import XCTest
77

8-
#if !canImport(Darwin)
8+
#if !compiler(>=6.0)
99
// FIXME: Leave Scaffolding since we still use 5.10 toolchain on non-Darwin platform
1010
final class AllTests: XCTestCase {
1111
func testAll() async {

0 commit comments

Comments
 (0)