Skip to content

armgit / cra

Public Imported from GitHub
0

The open-source Arc replacement for macOS. Spaces, pinned tabs, split view, Little Windows and Arc's shortcuts on Chromium, with your Arc sidebar imported in one go.

ChromiumLocaleTests: type the argument table so Xcode 27.2 compiles it

Victor47b6aece4171
diff --git a/Packages/CraCore/Tests/CraCoreTests/ChromiumLocaleTests.swift b/Packages/CraCore/Tests/CraCoreTests/ChromiumLocaleTests.swift
index b3b631b..0281fe6 100644
--- a/Packages/CraCore/Tests/CraCoreTests/ChromiumLocaleTests.swift
+++ b/Packages/CraCore/Tests/CraCoreTests/ChromiumLocaleTests.swift
@@ -13,7 +13,9 @@ struct ChromiumLocaleTests {
}()
// Each expectation is what Arc 1.171's bundle resolves for the same macOS languages.
- @Test(arguments: [
+ // Typed up front: as an untyped literal in @Test(arguments:) the type checker timed out
+ // on Xcode 27.2 (reported in #179).
+ static let languages: [([String], String)] = [
(["zh-Hans-CN"], "zh-CN"),
(["zh-Hans"], "zh-CN"),
(["zh-Hant-TW"], "zh-TW"),
@@ -29,7 +31,9 @@ struct ChromiumLocaleTests {
// A language Chromium has no translation for falls through to the next one.
(["is-IS", "de-DE"], "de"),
(["is-IS"], "en-US"),
- ])
+ ]
+
+ @Test(arguments: languages)
func followsMacOS(preferred: [String], locale: String) {
#expect(ChromiumLocale.pick(available: Self.cef, preferredLanguages: preferred) == locale)
}