From 7d77ae62e85fff4d3a85668e30eeab569d6c296d Mon Sep 17 00:00:00 2001 From: Noah Date: Sat, 27 Jun 2020 08:56:23 -0400 Subject: [PATCH] Fix tests --- src/clj/game/cards/assets.clj | 2 +- src/clj/game/cards/ice.clj | 2 +- test/clj/game/cards/events_test.clj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/clj/game/cards/assets.clj b/src/clj/game/cards/assets.clj index 299dbfead1..a9be8974d4 100644 --- a/src/clj/game/cards/assets.clj +++ b/src/clj/game/cards/assets.clj @@ -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) diff --git a/src/clj/game/cards/ice.clj b/src/clj/game/cards/ice.clj index ec5c0c408c..d47eba9756 100644 --- a/src/clj/game/cards/ice.clj +++ b/src/clj/game/cards/ice.clj @@ -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 diff --git a/test/clj/game/cards/events_test.clj b/test/clj/game/cards/events_test.clj index bdb3394751..15c4ebb08f 100644 --- a/test/clj/game/cards/events_test.clj +++ b/test/clj/game/cards/events_test.clj @@ -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"))))