Skip to content

Commit

Permalink
test for #358
Browse files Browse the repository at this point in the history
Signed-off-by: STUART HALLOWAY <stuart@STUART-HALLOWAYs-MacBook-Pro.local>
  • Loading branch information
stuarthalloway authored and STUART HALLOWAY committed May 27, 2010
1 parent 7700d66 commit 7304976
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/clojure/test_clojure/transients.clj
@@ -0,0 +1,10 @@
(ns clojure.test-clojure.transients
(:use clojure.test))

(deftest popping-off
(testing "across a node boundary"
(let [v (-> (range 33) vec)]
(is (= (subvec v 0 31) (-> v transient pop! pop! persistent!)))))
(testing "off the end"
(is (thrown-with-msg? IllegalStateException #"Can't pop empty vector"
(-> [] transient pop!)))))

0 comments on commit 7304976

Please sign in to comment.