Add iOS test

This commit is contained in:
Nathan Horrigan
2021-08-17 21:32:29 +01:00
parent 486b93b8a4
commit 21a8ca3945
33 changed files with 1619 additions and 10 deletions

View File

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