WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit c6f7a4f

Browse files
committed
Add a test suite specifically for legacy ABI tests
1 parent 94e47a4 commit c6f7a4f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Tests/FoundationEssentialsTests/DataLegacyABITests.swift

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@
1414
@_spi(FoundationLegacyABI) @testable import Foundation
1515
import Testing
1616

17-
@Test func validateLegacyABI() {
18-
var data = Data()
17+
@Suite("Foundation Legacy ABI")
18+
private final class FoundationLegacyABITests {
1919

20-
data._legacy_withUnsafeBytes { _ in }
21-
data._legacy_withUnsafeMutableBytes { _ in }
20+
@Test func validateDataLegacyABI() {
21+
var data = Data()
22+
23+
data._legacy_withUnsafeBytes { _ in }
24+
data._legacy_withUnsafeMutableBytes { _ in }
25+
}
2226
}
2327

2428
#endif // FOUNDATION_FRAMEWORK

0 commit comments

Comments
 (0)