From 6049e93c07b9ffc3ddb27477662bb03308871dea Mon Sep 17 00:00:00 2001 From: Peter Tang Date: Tue, 12 Sep 2023 18:22:32 +0800 Subject: [PATCH] added test case around UIFont family names. --- Tests/SwiftMathTests/MathFontTests.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Tests/SwiftMathTests/MathFontTests.swift b/Tests/SwiftMathTests/MathFontTests.swift index c417cfa..dff78fb 100644 --- a/Tests/SwiftMathTests/MathFontTests.swift +++ b/Tests/SwiftMathTests/MathFontTests.swift @@ -24,8 +24,10 @@ final class MathFontTests: XCTestCase { // print("Family: \(family) Font names: \(names)") // } fontNames.forEach { name in - let font = UIFont(name: name, size: CGFloat(size)) - XCTAssertNotNil(font) + XCTAssertNotNil(UIFont(name: name, size: CGFloat(size))) + } + fontFamilyNames.forEach { name in + XCTAssertNotNil(UIFont.fontNames(forFamilyName: name)) } #endif #if os(macOS)