Include file in error when set
This commit is contained in:
parent
ebc9f6479d
commit
fc081bda8e
3 changed files with 6 additions and 1 deletions
2
sci
2
sci
|
|
@ -1 +1 @@
|
|||
Subproject commit 9144f5ae29dc9fb710a58580411664647e848be5
|
||||
Subproject commit bb2fd687b962bad81088679157eb1d70b7ffc255
|
||||
|
|
@ -315,6 +315,10 @@
|
|||
(is (= 1 (bb nil "(binding [*command-line-args* 1] *command-line-args*)")))
|
||||
(is (= 1 (bb nil "(binding [*input* 1] *input*)"))))
|
||||
|
||||
(deftest file-in-error-msg-test
|
||||
(is (thrown-with-msg? Exception #"error.bb"
|
||||
(bb nil (.getPath (io/file "test" "babashka" "scripts" "error.bb"))))))
|
||||
|
||||
;;;; Scratch
|
||||
|
||||
(comment
|
||||
|
|
|
|||
1
test/babashka/scripts/error.bb
Normal file
1
test/babashka/scripts/error.bb
Normal file
|
|
@ -0,0 +1 @@
|
|||
(/ 1 0)
|
||||
Loading…
Reference in a new issue