Add language identification swiftui demo (#729)

This commit is contained in:
yujinqiu
2024-04-01 20:34:14 +08:00
committed by GitHub
parent fabd30e3bb
commit f8832cb5f2
16 changed files with 1057 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
//
// SherpaOnnxLangIDTests.swift
// SherpaOnnxLangIDTests
//
// Created by knight on 2024/4/1.
//
import XCTest
@testable import SherpaOnnxLangID
final class SherpaOnnxLangIDTests: XCTestCase {
override func setUpWithError() throws {
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDownWithError() throws {
// Put teardown code here. This method is called after the invocation of each test method in the class.
}
func testExample() throws {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
// Any test you write for XCTest can be annotated as throws and async.
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
}
func testPerformanceExample() throws {
// This is an example of a performance test case.
self.measure {
// Put the code you want to measure the time of here.
}
}
}