File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -560,7 +560,7 @@ aren't visible to other users:
560
560
(def forked (sci/fork sci-ctx))
561
561
(sci/eval-string* forked " (def forked 1)" )
562
562
(sci/eval-string* forked " forked" ) ; ;=> 1
563
- (sci/eval-string* sci-ctx " forked" ) ; ;=> Could not resolved symbol: forked
563
+ (sci/eval-string* sci-ctx " forked" ) ; ;=> Unable to resolve symbol: forked
564
564
```
565
565
566
566
### Implementing require and load-file
Original file line number Diff line number Diff line change 282
282
#?(:cljs (let [resolved (resolve-dotted-access ctx sym call? m)]
283
283
resolved))
284
284
(throw-error-with-location
285
- (str " Could not resolve symbol: " sym)
285
+ (str " Unable to resolve symbol: " sym)
286
286
sym)))))
Original file line number Diff line number Diff line change 1262
1262
(sci/eval-string* forked " y" ))))
1263
1263
(is (thrown-with-msg?
1264
1264
#?(:clj Exception :cljs js/Error)
1265
- #"Could not resolve symbol: y" (sci/eval-string* ctx " y" ))))))
1265
+ #"Unable to resolve symbol: y" (sci/eval-string* ctx " y" ))))))
1266
1266
1267
1267
(defmacro do-twice [x] `(do ~x ~x))
1268
1268
(defn ^:sci/macro do-twice* [_ _ x] `(do ~x ~x))
Original file line number Diff line number Diff line change 74
74
(is (= 32 (eval* " (. Integer -SIZE)" )))
75
75
(is (= 32 (eval* " (. Integer SIZE)" )))
76
76
(testing " calling static field on unconfigured classes is not allowed"
77
- (is (thrown-with-msg? Exception #"not "
77
+ (is (thrown-with-msg? Exception #"to resolve "
78
78
(eval* " clojure.lang.Var/rev" ))))))
79
79
80
80
#?(:clj
113
113
(is (= 123 (eval* " (defmacro parse-int [x] `(. Integer (parseInt ~x)))
114
114
(parse-int \" 123\" )" )))
115
115
(testing " calling static methods on unconfigured classes is not allowed"
116
- (is (thrown-with-msg? Exception #"not "
116
+ (is (thrown-with-msg? Exception #"to resolve "
117
117
(eval* " (clojure.lang.Var/find 'clojure.core/int)" ))))
118
118
(is (= :dude (sci/eval-string
119
119
" (Class/forName \" java.lang.String\" )"
Original file line number Diff line number Diff line change 50
50
(is (= 16 (eval* " (ns foo (:refer-clojure :rename {bit-shift-left <<})) (<< 8 1)" )))
51
51
(is (thrown-with-msg?
52
52
#?(:clj Exception :cljs js/Error)
53
- #"not .*resolve.*bit-shift-left"
53
+ #"to .*resolve.*bit-shift-left"
54
54
(eval* " (ns foo (:refer-clojure :rename {bit-shift-left <<})) (bit-shift-left 8 1)" ))))
55
55
(when-not tu/native?
56
56
(testing " load-fn + requiring-resolve"
73
73
(is (= #{1 2 } (eval* " (use '[clojure.set :only [union]]) (union #{1} #{2})" )))
74
74
(is (thrown-with-msg?
75
75
#?(:clj Exception :cljs js/Error)
76
- #"not .*resolve.*union"
76
+ #"to .*resolve.*union"
77
77
(eval* " (use '[clojure.set :exclude [union]]) (union #{1} #{2})" )))
78
78
(is (thrown-with-msg?
79
79
#?(:clj Exception :cljs js/Error)
80
- #"not .*resolve.*union"
80
+ #"to .*resolve.*union"
81
81
(eval* " (use '[clojure.set :only [difference]]) (union #{1} #{2})" )))
82
82
(is (thrown-with-msg?
83
83
#?(:clj Exception :cljs js/Error)
You can’t perform that action at this time.
0 commit comments