Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahTheDuke committed Jun 27, 2020
1 parent a17c7e5 commit 7d77ae6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/clj/game/cards/assets.clj
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@
:choices {:max dbs
:card #(some (fn [c] (same-card? c %)) drawn)
:all true}
:effect (req (doseq [c targets]
:effect (req (doseq [c (reverse targets)]
(move state side c :deck)))}
card targets)
(clear-wait-prompt state :runner)
Expand Down
2 changes: 1 addition & 1 deletion src/clj/game/cards/ice.clj
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@
:card #(and (in-hand? %)
(runner? %))}
:msg (msg "add " n " cards from their Grip to the top of the Stack")
:effect (req (doseq [c targets]
:effect (req (doseq [c (reverse targets)]
(move state :runner c :deck {:front true})))})
card nil))}
:subroutines [end-the-run-if-tagged
Expand Down
2 changes: 1 addition & 1 deletion test/clj/game/cards/events_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4429,7 +4429,7 @@
(click-card state :runner "Easy Mark")
(click-card state :runner "Sure Gamble")
(is (= 2 (-> (get-runner) :hand count)))
(is (= ["Sure Gamble" "Easy Mark"] (->> (get-runner) :hand (map :title) (into []))))
(is (= ["Easy Mark" "Sure Gamble"] (->> (get-runner) :hand (map :title) (into []))))
(is (nil? (prompt-map :corp)) "Corp should have no more prompts")
(is (nil? (prompt-map :runner)) "Runner should have no more prompts")
(is (nil? (get-run)) "Run is ended"))))
Expand Down

0 comments on commit 7d77ae6

Please sign in to comment.