Rename players-of-game function to start with verb
Signed-off-by: Sebastian Crane <seabass-labrax@gmx.com>
This commit is contained in:
parent
f85458340c
commit
242873a713
|
@ -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]
|
||||
|
|
|
@ -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 (=
|
||||
|
|
Loading…
Reference in New Issue