Skip to content

Commit

Permalink
Got rid of extraneous do
Browse files Browse the repository at this point in the history
  • Loading branch information
calebphillips committed Jan 26, 2011
1 parent 1e25ec3 commit 2abe594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/test/snake.clj
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
(is (lose? (-> snake (turn [0 -1]) move move)) "Running into the top wall")
(is (lose? (first (drop 75 (iterate move snake)))) "Running into the right wall")
(let [turned-snake (turn snake [0 1])]
(is (lose? (do (first (drop 50 (iterate move turned-snake))))) "Running into the bottom wall"))))
(is (lose? (first (drop 50 (iterate move turned-snake)))) "Running into the bottom wall"))))

(deftest test-eats
(let [eat-me {:location (first (:body snake))}
Expand Down

0 comments on commit 2abe594

Please sign in to comment.