From 97998126b99500ba793a7a30c61d2991337182e5 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Wed, 17 Apr 2024 17:07:33 -0600 Subject: add tests --- Tests/SwiftChessNeoTests/VariantTests.swift | 30 +++++++---------------------- 1 file changed, 7 insertions(+), 23 deletions(-) (limited to 'Tests/SwiftChessNeoTests/VariantTests.swift') diff --git a/Tests/SwiftChessNeoTests/VariantTests.swift b/Tests/SwiftChessNeoTests/VariantTests.swift index 4f0513e..896f18f 100644 --- a/Tests/SwiftChessNeoTests/VariantTests.swift +++ b/Tests/SwiftChessNeoTests/VariantTests.swift @@ -6,30 +6,14 @@ // import XCTest +@testable import SwiftChessNeo final class VariantTests: 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. - } + + func testVariantEnum() { + let game = Game() + + XCTAssertEqual(game.variant.isUpsideDown, false) + XCTAssertEqual(game.variant.isStandard, true) } - } -- cgit v1.2.3