ExampleCodeTests.swift 1.1 KB

1234567891011121314151617181920212223242526272829
  1. import XCTest
  2. @testable import ExampleCode
  3. final class ExampleCodeTests: XCTestCase {
  4. override func setUpWithError() throws {
  5. // Put setup code here. This method is called before the invocation of each test method in the class.
  6. }
  7. override func tearDownWithError() throws {
  8. // Put teardown code here. This method is called after the invocation of each test method in the class.
  9. }
  10. func testExample() throws {
  11. // This is an example of a functional test case.
  12. // Use XCTAssert and related functions to verify your tests produce the correct results.
  13. // Any test you write for XCTest can be annotated as throws and async.
  14. // Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
  15. // Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
  16. }
  17. func testPerformanceExample() throws {
  18. // This is an example of a performance test case.
  19. self.measure {
  20. // Put the code you want to measure the time of here.
  21. }
  22. }
  23. }