aboutsummaryrefslogtreecommitdiff
path: root/Tests/SwiftChessNeoTests/SwiftChessNeoPlayer.swift
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2024-04-17 17:07:24 -0600
committerNavan Chauhan <navanchauhan@gmail.com>2024-04-17 17:07:24 -0600
commit081adb89d7f5c8e80961e3873654be3473faef71 (patch)
treed64151ad8d3b06077dae64952d0bacdcd2e9a103 /Tests/SwiftChessNeoTests/SwiftChessNeoPlayer.swift
parent8e5bf91607d5d222f22676411eda7c0ac9a90427 (diff)
add option to get image name
Diffstat (limited to 'Tests/SwiftChessNeoTests/SwiftChessNeoPlayer.swift')
-rw-r--r--Tests/SwiftChessNeoTests/SwiftChessNeoPlayer.swift30
1 files changed, 0 insertions, 30 deletions
diff --git a/Tests/SwiftChessNeoTests/SwiftChessNeoPlayer.swift b/Tests/SwiftChessNeoTests/SwiftChessNeoPlayer.swift
deleted file mode 100644
index b21b33c..0000000
--- a/Tests/SwiftChessNeoTests/SwiftChessNeoPlayer.swift
+++ /dev/null
@@ -1,30 +0,0 @@
-//
-// SwiftChessNeoPlayer.swift
-//
-//
-// Created by Navan Chauhan on 4/17/24.
-//
-
-import XCTest
-@testable import SwiftChessNeo
-
-final class SwiftChessNeoPlayer: XCTestCase {
-
- func testPlayerStruct() {
- let player1 = Player(kind: .human, name: "Magnus Carlsen", elo: 2900)
- let player2 = Player(kind: .human, name: "Magnus Carlsen", elo: 2900)
- let player3 = Player(kind: .computer, name: "Magnot Carlsen", elo: 2900)
-
- XCTAssertEqual(player1.kind.isHuman, true)
- XCTAssertEqual(player1.kind.isComputer, false)
- XCTAssertEqual(player3.kind.isHuman, false)
- XCTAssertEqual(player3.kind.isComputer, true)
- XCTAssertEqual(player1, player2)
-
- XCTAssertEqual(player1.kind.description, "Human")
- XCTAssertEqual(player3.kind.description, "Computer")
-
- XCTAssertEqual(player1.description, "Player(kind: Human, name: Magnus Carlsen, elo: 2900)")
- }
-
-}