code cleaning: remove print statement

This commit is contained in:
Nicolas Guillot
2025-11-18 09:01:00 +01:00
parent 90767b7953
commit 8ce6da114c
7 changed files with 1 additions and 46 deletions

View File

@@ -2187,19 +2187,9 @@ final class MTMathListBuilderTests: XCTestCase {
]
for (latex, desc) in testCases {
print("Testing: \(desc)")
print(" LaTeX: \(latex)")
var error: NSError? = nil
let list = MTMathListBuilder.build(fromString: latex, error: &error)
if let err = error {
print(" ERROR: \(err.localizedDescription)")
} else if list == nil {
print(" List is nil but no error")
} else {
print(" SUCCESS: Got \(list!.atoms.count) atoms")
}
let unwrappedList = try XCTUnwrap(list, "Should parse: \(desc)")
XCTAssertNil(error, "Should not error on \(desc): \(error?.localizedDescription ?? "")")
XCTAssertTrue(unwrappedList.atoms.count >= 1, "\(desc) should have atoms")
@@ -2474,19 +2464,9 @@ final class MTMathListBuilderTests: XCTestCase {
]
for (latex, desc) in testCases {
print("Testing: \(desc)")
print(" LaTeX: \(latex)")
var error: NSError? = nil
let list = MTMathListBuilder.build(fromString: latex, error: &error)
if let err = error {
print(" ERROR: \(err.localizedDescription)")
} else if list == nil {
print(" List is nil but no error")
} else {
print(" SUCCESS: Got \(list!.atoms.count) atoms")
}
let unwrappedList = try XCTUnwrap(list, "Should parse: \(desc)")
XCTAssertNil(error, "Should not error on \(desc): \(error?.localizedDescription ?? "")")
XCTAssertTrue(unwrappedList.atoms.count >= 1, "\(desc) should have atoms")
@@ -2521,19 +2501,9 @@ final class MTMathListBuilderTests: XCTestCase {
]
for (latex, desc) in testCases {
print("Testing: \(desc)")
print(" LaTeX: \(latex)")
var error: NSError? = nil
let list = MTMathListBuilder.build(fromString: latex, error: &error)
if let err = error {
print(" ERROR: \(err.localizedDescription)")
} else if list == nil {
print(" List is nil but no error")
} else {
print(" SUCCESS: Got \(list!.atoms.count) atoms")
}
let unwrappedList = try XCTUnwrap(list, "Should parse: \(desc)")
XCTAssertNil(error, "Should not error on \(desc): \(error?.localizedDescription ?? "")")
XCTAssertTrue(unwrappedList.atoms.count >= 1, "\(desc) should have atoms")