Fix tests
This commit is contained in:
parent
6d2b026dd2
commit
49c2661cf6
1 changed files with 5 additions and 4 deletions
|
|
@ -542,10 +542,11 @@
|
||||||
(is (str/includes? (test-utils/bb "(ns foo) ::foo" "--repl") ":foo/foo"))
|
(is (str/includes? (test-utils/bb "(ns foo) ::foo" "--repl") ":foo/foo"))
|
||||||
(is (str/includes? (test-utils/bb "[*warn-on-reflection* (set! *warn-on-reflection* true) *warn-on-reflection*]")
|
(is (str/includes? (test-utils/bb "[*warn-on-reflection* (set! *warn-on-reflection* true) *warn-on-reflection*]")
|
||||||
"[false true true]"))
|
"[false true true]"))
|
||||||
|
(when-not test-utils/native?
|
||||||
(let [sw (java.io.StringWriter.)]
|
(let [sw (java.io.StringWriter.)]
|
||||||
(sci/with-bindings {sci/err sw}
|
(sci/with-bindings {sci/err sw}
|
||||||
(test-utils/bb {:in "x" :err sw} "--repl"))
|
(test-utils/bb {:in "x" :err sw} "--repl"))
|
||||||
(is (str/includes? (str sw) "Could not resolve symbol: x [at <repl>:1:1]"))))
|
(is (str/includes? (str sw) "Could not resolve symbol: x [at <repl>:1:1]")))))
|
||||||
|
|
||||||
;;;; Scratch
|
;;;; Scratch
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue