diff options
author | Rich Hickey <richhickey@gmail.com> | 2009-07-18 11:04:24 -0400 |
---|---|---|
committer | Rich Hickey <richhickey@gmail.com> | 2009-07-18 11:04:24 -0400 |
commit | 63553773bebf7d76883b6d0485c4f3b5ac07ef42 (patch) | |
tree | 207c4bb2a121663d9b5dfa2958ce8790303d2bf1 | |
parent | ed1eb3a3de535070edae3d7b8a9b3657d91726f8 (diff) |
changed to test only for IndexOutOfBoundsException, not ArrayIndexOutOfBoundsException
-rw-r--r-- | test/clojure/test_clojure/sequences.clj | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/clojure/test_clojure/sequences.clj b/test/clojure/test_clojure/sequences.clj index c1e19342..9096c69e 100644 --- a/test/clojure/test_clojure/sequences.clj +++ b/test/clojure/test_clojure/sequences.clj @@ -474,12 +474,12 @@ (is (thrown? IndexOutOfBoundsException (nth [] 0))) (is (thrown? IndexOutOfBoundsException (nth [1 2 3] 5))) (is (thrown? IndexOutOfBoundsException (nth [] -1))) - (is (thrown? ArrayIndexOutOfBoundsException (nth [1 2 3] -1))) ; ??? + (is (thrown? IndexOutOfBoundsException (nth [1 2 3] -1))) ; ??? - (is (thrown? ArrayIndexOutOfBoundsException (nth (into-array []) 0))) - (is (thrown? ArrayIndexOutOfBoundsException (nth (into-array [1 2 3]) 5))) - (is (thrown? ArrayIndexOutOfBoundsException (nth (into-array []) -1))) - (is (thrown? ArrayIndexOutOfBoundsException (nth (into-array [1 2 3]) -1))) + (is (thrown? IndexOutOfBoundsException (nth (into-array []) 0))) + (is (thrown? IndexOutOfBoundsException (nth (into-array [1 2 3]) 5))) + (is (thrown? IndexOutOfBoundsException (nth (into-array []) -1))) + (is (thrown? IndexOutOfBoundsException (nth (into-array [1 2 3]) -1))) (is (thrown? StringIndexOutOfBoundsException (nth "" 0))) (is (thrown? StringIndexOutOfBoundsException (nth "abc" 5))) @@ -488,8 +488,8 @@ (is (thrown? IndexOutOfBoundsException (nth (java.util.ArrayList. []) 0))) (is (thrown? IndexOutOfBoundsException (nth (java.util.ArrayList. [1 2 3]) 5))) - (is (thrown? ArrayIndexOutOfBoundsException (nth (java.util.ArrayList. []) -1))) ; ??? - (is (thrown? ArrayIndexOutOfBoundsException (nth (java.util.ArrayList. [1 2 3]) -1))) ; ??? + (is (thrown? IndexOutOfBoundsException (nth (java.util.ArrayList. []) -1))) ; ??? + (is (thrown? IndexOutOfBoundsException (nth (java.util.ArrayList. [1 2 3]) -1))) ; ??? (are [x y] (= x y) (nth '(1) 0) 1 |