Sunset MathTable, created MTFontV2, MTFontMathTableV2 and MathImage, about to sunset MTMathImage
This commit is contained in:
21
Tests/SwiftMathTests/MTFontV2Tests.swift
Normal file
21
Tests/SwiftMathTests/MTFontV2Tests.swift
Normal file
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// MTFontV2Tests.swift
|
||||
//
|
||||
//
|
||||
// Created by Peter Tang on 15/9/2023.
|
||||
//
|
||||
|
||||
import XCTest
|
||||
@testable import SwiftMath
|
||||
|
||||
final class MTFontV2Tests: XCTestCase {
|
||||
func testMTFontV2Script() throws {
|
||||
let size = CGFloat(Int.random(in: 20 ... 40))
|
||||
MathFont.allCases.forEach {
|
||||
let mtfont = $0.mtfont(size: size)
|
||||
let mTable = mtfont.mathTable?._mathTable
|
||||
XCTAssertNotNil(mtfont)
|
||||
XCTAssertNotNil(mTable)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user