From 5aa87b145d99a0f74fb267e11eef2e7305646b7d Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Wed, 24 Apr 2024 02:07:10 -0600 Subject: rename tests --- Tests/LichessClientTests/LichessClientTests.swift | 35 +++++++++++++++++++++++ Tests/swift-lichessTests/swift_lichessTests.swift | 35 ----------------------- 2 files changed, 35 insertions(+), 35 deletions(-) create mode 100644 Tests/LichessClientTests/LichessClientTests.swift delete mode 100644 Tests/swift-lichessTests/swift_lichessTests.swift (limited to 'Tests') diff --git a/Tests/LichessClientTests/LichessClientTests.swift b/Tests/LichessClientTests/LichessClientTests.swift new file mode 100644 index 0000000..129a403 --- /dev/null +++ b/Tests/LichessClientTests/LichessClientTests.swift @@ -0,0 +1,35 @@ +import XCTest + +@testable import LichessClient + +final class LichessClientTestsPac: XCTestCase { + + func testTablebaseLookup() async throws { + let client = LichessClient() + + let tablebaseLookup = try await client.getStandardTablebase( + fen: "4k3/6KP/8/8/8/8/7p/8_w_-_-_0_1") + guard let dtm = tablebaseLookup.dtm else { + XCTAssert(false == true) + return + } + XCTAssert(dtm == 17) + + var found = false + guard let moves = tablebaseLookup.moves else { + XCTAssert(true == false) + return + } + for move in moves { + guard let uci = move.uci else { + XCTAssert(false == true) + return + } + if uci == "h7h8q" { + found = true + break + } + } + XCTAssert(found == true) + } +} diff --git a/Tests/swift-lichessTests/swift_lichessTests.swift b/Tests/swift-lichessTests/swift_lichessTests.swift deleted file mode 100644 index cf125aa..0000000 --- a/Tests/swift-lichessTests/swift_lichessTests.swift +++ /dev/null @@ -1,35 +0,0 @@ -import XCTest - -@testable import LichessClient - -final class swift_lichessTests: XCTestCase { - - func testTablebaseLookup() async throws { - let client = LichessClient() - - let tablebaseLookup = try await client.getStandardTablebase( - fen: "4k3/6KP/8/8/8/8/7p/8_w_-_-_0_1") - guard let dtm = tablebaseLookup.dtm else { - XCTAssert(false == true) - return - } - XCTAssert(dtm == 17) - - var found = false - guard let moves = tablebaseLookup.moves else { - XCTAssert(true == false) - return - } - for move in moves { - guard let uci = move.uci else { - XCTAssert(false == true) - return - } - if uci == "h7h8q" { - found = true - break - } - } - XCTAssert(found == true) - } -} -- cgit v1.2.3