// // SettingsProviderTests.swift // oAITests // // SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 // Copyright (C) 2026 Rune Olsen import Testing @testable import oAI @Suite("Settings.Provider display metadata") struct SettingsProviderTests { @Test("Apple on-device gets a dedicated display name, not a raw-value capitalization") func appleOnDeviceDisplayName() { #expect(Settings.Provider.appleOnDevice.displayName == "Apple Intelligence") } @Test("Apple on-device uses the Apple logo icon") func appleOnDeviceIconName() { #expect(Settings.Provider.appleOnDevice.iconName == "apple.logo") } @Test("Other providers still fall back to a capitalized raw value") func otherProvidersUseCapitalizedRawValue() { #expect(Settings.Provider.openrouter.displayName == "Openrouter") #expect(Settings.Provider.anthropic.displayName == "Anthropic") #expect(Settings.Provider.openai.displayName == "Openai") #expect(Settings.Provider.ollama.displayName == "Ollama") } }