Skip to content

Commit c3e94ea

Browse files
committed
SR-1674: Add @testable import to TestNSString.swift
- This allows access to internal methods and properties of Foundation.
1 parent 3c19027 commit c3e94ea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

TestFoundation/TestNSString.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99

1010
import CoreFoundation
1111

12+
#if DEPLOYMENT_RUNTIME_OBJC || os(Linux) || os(Android)
13+
@testable import Foundation
14+
#else
15+
@testable import SwiftFoundation
16+
#endif
17+
1218
#if os(macOS) || os(iOS)
1319
internal let kCFStringEncodingMacRoman = CFStringBuiltInEncodings.macRoman.rawValue
1420
internal let kCFStringEncodingWindowsLatin1 = CFStringBuiltInEncodings.windowsLatin1.rawValue

0 commit comments

Comments
 (0)