File tree 1 file changed +11
-11
lines changed
test/clj/cider/nrepl/middleware
1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 116
116
(:data (analyze-cause (ex-info " " {:a (range )}) pprint {:length 3 })))))
117
117
(testing " print-level"
118
118
(is (= " {:a {#}}"
119
- (:data (analyze-cause (ex-info " " {:a {:b {:c {:d {:e nil }}}}}) pprint {:level 3 })))))
120
- (testing " compilation errors"
121
- (let [clojure-version ((juxt :major :minor ) *clojure-version*)]
122
- (if (< (compare clojure-version [1 10 ]) 0 )
123
- ; ; 1.8 / 1.9
124
- (is (re-find #"Unable to resolve symbol: not-defined in this context"
125
- (:message (first causes3))))
126
-
127
- ; ; 1.10+
128
- (is (re-find #"Syntax error compiling at \( cider/nrepl/middleware/stacktrace_test\. clj:"
129
- (:message (first causes3))))))))
119
+ (:data (analyze-cause (ex-info " " {:a {:b {:c {:d {:e nil }}}}}) pprint {:level 3 }))))))
130
120
131
121
(deftest compilation-errors-test
122
+ (let [clojure-version ((juxt :major :minor ) *clojure-version*)]
123
+ (if (< (compare clojure-version [1 10 ]) 0 )
124
+ ; ; 1.8 / 1.9
125
+ (is (re-find #"Unable to resolve symbol: not-defined in this context"
126
+ (:message (first causes3))))
127
+
128
+ ; ; 1.10+
129
+ (is (re-find #"Syntax error compiling at \( cider/nrepl/middleware/stacktrace_test\. clj:"
130
+ (:message (first causes3))))))
131
+
132
132
(testing " extract-location"
133
133
(is (= {:class " clojure.lang.Compiler$CompilerException"
134
134
:message " java.lang.RuntimeException: Unable to resolve symbol: foo in this context"
You can’t perform that action at this time.
0 commit comments