diff --git a/src/game.clj b/src/game.clj index 7cfc2f6..52e0b1c 100644 --- a/src/game.clj +++ b/src/game.clj @@ -3,7 +3,7 @@ (ns game) -(defn players-of-game [state game] +(defn get-players-of-game [state game] (get-in state [:games game])) (defn add-player-of-game [state game player] diff --git a/test/game_test.clj b/test/game_test.clj index fc9cb4f..eda30f5 100644 --- a/test/game_test.clj +++ b/test/game_test.clj @@ -9,10 +9,10 @@ :quasi-rts #{"player-two" "player-four"} :imaginary-rpg #{"player-one" "player-three" "player-four"}}}) -(deftest players-of-game-test +(deftest get-players-of-game-test (is (= '#{"player-two" "player-four"} - (players-of-game test-state :quasi-rts)))) + (get-players-of-game test-state :quasi-rts)))) (deftest add-player-of-game-test (is (=