clean up unnecessary test script messages.

This commit is contained in:
Peter Tang
2023-09-18 20:10:52 +08:00
parent b637b18ace
commit c6ea427bfb
2 changed files with 3 additions and 7 deletions

View File

@@ -55,9 +55,9 @@ final class MTFontMathTableV2Tests: XCTestCase {
mTable?.fractionNumeratorDisplayStyleGapMin, mTable?.fractionNumeratorDisplayStyleGapMin,
mTable?.fractionNumeratorGapMin, mTable?.fractionNumeratorGapMin,
].compactMap{$0} ].compactMap{$0}
if count % 50 == 0 { // if count % 50 == 0 {
print(values) // accessed these values on global thread. // print(values) // accessed these values on global thread.
} // }
XCTAssertNotNil(mTable) XCTAssertNotNil(mTable)
} }
workitem.notify(queue: .main) { [weak self] in workitem.notify(queue: .main) { [weak self] in

View File

@@ -42,8 +42,6 @@ final class MathImageTests: XCTestCase {
safeImage(fileName: "\(caseNumber)", pngData: imageData) safeImage(fileName: "\(caseNumber)", pngData: imageData)
let fileUrl = URL(fileURLWithPath: NSTemporaryDirectory()) let fileUrl = URL(fileURLWithPath: NSTemporaryDirectory())
print("completed image-\(caseNumber).png") print("completed image-\(caseNumber).png")
} else {
print("failed image-\(caseNumber).png")
} }
default: default:
result = SwiftMathImageResult.useMTMathImage(latex: latex, font: mathfont, fontSize: fontsize) result = SwiftMathImageResult.useMTMathImage(latex: latex, font: mathfont, fontSize: fontsize)
@@ -53,8 +51,6 @@ final class MathImageTests: XCTestCase {
safeImage(fileName: "\(caseNumber)", pngData: imageData) safeImage(fileName: "\(caseNumber)", pngData: imageData)
let fileUrl = URL(fileURLWithPath: NSTemporaryDirectory()) let fileUrl = URL(fileURLWithPath: NSTemporaryDirectory())
print("completed image-\(caseNumber).png") print("completed image-\(caseNumber).png")
} else {
print("failed image-\(caseNumber).png")
} }
} }
} }