Files
wasmer/tests/integration/ios/DylibExample/DylibExampleTests/DylibExampleTests.swift
Nathan Horrigan 21a8ca3945 Add iOS test
2021-08-21 10:21:37 +01:00

34 lines
856 B
Swift

//
// 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.
}
}
}