We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f0db9b commit 73758a6Copy full SHA for 73758a6
Core/Tests/CoreTests/UserDictionaryTests/UserDictionaryTests.swift
@@ -2,8 +2,14 @@
2
import Testing
3
4
@Test func testSystemUserDictionaryHelper() async throws {
5
+ #if os(macOS)
6
let entries = try await SystemUserDictionaryHelper.fetchEntries()
7
print(entries)
8
// always true
9
#expect(entries.count >= 0)
10
+ #else
11
+ #expect(throws: SystemUserDictionaryHelper.FetchError.unsupportedOperatingSystem) {
12
+ _ = try await SystemUserDictionaryHelper.fetchEntries()
13
+ }
14
+ #endif
15
}
0 commit comments