Sci: remove ns when error while loading
This commit is contained in:
parent
1c5cebb608
commit
ebc9f6479d
3 changed files with 14 additions and 1 deletions
2
sci
2
sci
|
|
@ -1 +1 @@
|
|||
Subproject commit acaca5fb54e7b2f16ec87f32b045e88a9539272b
|
||||
Subproject commit 9144f5ae29dc9fb710a58580411664647e848be5
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
(ns ns-with-error)
|
||||
|
||||
(def x 0)
|
||||
(def y (/ 1 0))
|
||||
|
|
@ -25,3 +25,12 @@
|
|||
(deftest main-test
|
||||
(is (= "(\"1\" \"2\" \"3\" \"4\")\n"
|
||||
(tu/bb nil "--classpath" "test-resources/babashka/src_for_classpath_test" "-m" "my.main" "1" "2" "3" "4"))))
|
||||
|
||||
(deftest error-while-loading-test
|
||||
(is (true?
|
||||
(bb nil "--classpath" "test-resources/babashka/src_for_classpath_test"
|
||||
"
|
||||
(try
|
||||
(require '[ns-with-error])
|
||||
(catch Exception nil))
|
||||
(nil? (resolve 'ns-with-error/x))"))))
|
||||
|
|
|
|||
Loading…
Reference in a new issue