1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- //
- // ChineseStringAutoTest.swift
- // KdanAuto
- //
- // Created by 朱东勇 on 2022/11/22.
- //
- import Foundation
- import Cocoa
- class ChineseStringAutoTest : AutoTest {
-
- override func type() -> String {
- return "PDFConvert_China_Auto_Test"
- }
-
- override func name() -> String {
- return "中文字符转换准确率测试"
- }
-
- override func keys() -> NSArray {
- return ["字符对比", "前一版对比"]
- }
-
- static var cSharedInstance = ChineseStringAutoTest()
- override class func shared() -> AutoTest? {
- return cSharedInstance
- }
-
-
- // Auto Test refrence Check File
- override func autoTest() {
- // 暂时先用转RTF做为范例
- let checkPath = self.checkFilePath()
- let originPath = self.originFilePath()
-
- let checkData = NSData.init(contentsOfFile: checkPath) as! Data
- var documentAttributes:NSDictionary!
- let checkAttString = NSAttributedString.init(rtf: checkData, documentAttributes: &documentAttributes)
-
- NSLog("\(checkAttString)")
-
- }
-
- // Auto Test refrence Latest Status
- override func autoCheck() {
-
- }
-
- }
|