Skip to content

Commit a9e4c8c

Browse files
committed
update tests
1 parent cfbc4b3 commit a9e4c8c

1 file changed

Lines changed: 4 additions & 13 deletions

File tree

src/test/clojure/clojure/tools/analyzer/jvm/core_test.clj

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -129,19 +129,10 @@
129129
(is (= 'String/valueOf (mexpand String/valueOf)))
130130
(is (= 'Integer/parseInt (mexpand Integer/parseInt)))
131131

132-
(let [expanded (mexpand (String/new "hello"))]
133-
(is (= 'new (first expanded)))
134-
(is (= java.lang.String (second expanded))))
135-
136-
(let [expanded (mexpand (String/.substring "hello" 1 3))]
137-
(is (= '. (first expanded)))
138-
(is (= '(do "hello") (second expanded)))
139-
(is (= String (:tag (meta (second expanded)))))
140-
(is (= 'substring (first (nth expanded 2)))))
141-
142-
(let [expanded (mexpand (String/.length "hello"))]
143-
(is (= '. (first expanded)))
144-
(is (= 'length (nth expanded 2))))
132+
(is (= '(String/new "hello") (mexpand (String/new "hello"))))
133+
(is (= '(String/.substring "hello" 1 3) (mexpand (String/.substring "hello" 1 3))))
134+
(is (= '(String/.length "hello") (mexpand (String/.length "hello"))))
135+
(is (= '(Integer/parseInt "2") (mexpand (^[int] Integer/parseInt "2"))))
145136

146137
(let [expanded (mexpand (Integer/parseInt "2"))]
147138
(is (= '. (first expanded)))

0 commit comments

Comments
 (0)