mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 13:48:26 +00:00
Add iOS test
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
//
|
||||
// DylibExampleTests.swift
|
||||
// DylibExampleTests
|
||||
//
|
||||
// Created by Nathan Horrigan on 15/08/2021.
|
||||
//
|
||||
|
||||
import XCTest
|
||||
@testable import DylibExample
|
||||
|
||||
class DylibExampleTests: 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 {
|
||||
let sum = calculate_sum(5, 2)
|
||||
assert(sum == 7, "WASM loaded successfully")
|
||||
}
|
||||
|
||||
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.
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user