Repository Public MIT
1// =============================================================================2// SP BOUCHER | SOFTWARE & RESEARCH3// ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING4// =============================================================================5//6// Project : SP GlassKit7// File : Tests/SPGlassMediaTests/GlassMediaSymbolTests.swift8// Module : Tests9// Repository : https://git.spboucher.ai/sp-glasskit10// Project Website : https://glass.spboucher.ai11// Created : 2026-12-0212// Last Modified : 2026-12-0213//14// Author : Simon-Pierre Boucher15// Position : Professor of Finance16// Institution : Université du Québec en Outaouais (UQO)17// Organization : SP Boucher18// Website : https://spboucher.ai19// Git : https://git.spboucher.ai20//21// Preferred Contact: contact@spboucher.ai22// Development : dev@spboucher.ai23// Support : support@spboucher.ai24// Security/Admin : admin@spboucher.ai25//26// Copyright (c) 202627// Simon-Pierre Boucher28// All rights reserved where applicable. This file is governed by the29// applicable project license, copyright notices and relevant law.30// Existing third-party rights and notices remain unaffected.31//32// License : MIT33//34// Do not embed credentials, private keys, access tokens,35// certificates or confidential personal information.36//37// =============================================================================38// END OF SP BOUCHER SOURCE HEADER39// =============================================================================4041#if canImport(AppKit)42import AppKit43import Testing44@testable import SPGlassMedia4546@Suite("Media symbols")47struct GlassMediaSymbolTests {48 @Test func everySymbolExistsInSFSymbols() {49 var names = ["play.fill", "pause.fill", "speaker.slash", "video.slash", "photo.on.rectangle", "exclamationmark.triangle", "xmark", "chevron.backward", "chevron.forward"]50 names += [0, 0.2, 0.5, 1].map { GlassVolumeState(level: $0).symbolName }51 for interval in GlassAudioPlayerSymbols.numberedIntervals.sorted() + [7] {52 names.append(GlassAudioPlayerSymbols.skip(TimeInterval(interval), forward: true))53 names.append(GlassAudioPlayerSymbols.skip(TimeInterval(interval), forward: false))54 }55 for name in names {56 #expect(NSImage(systemSymbolName: name, accessibilityDescription: nil) != nil, "Unknown SF Symbol \(name)")57 }58 }59}60#endif61