[#250] test
This commit is contained in:
parent
ecf3caa251
commit
f27c706340
1 changed files with 2 additions and 1 deletions
|
|
@ -20,7 +20,8 @@
|
||||||
(is (= {:result 8080} (bb nil "test/babashka/scripts/tools.cli.bb")))
|
(is (= {:result 8080} (bb nil "test/babashka/scripts/tools.cli.bb")))
|
||||||
(is (thrown-with-msg? Exception #"does not exist" (bb nil "foo.clj")))
|
(is (thrown-with-msg? Exception #"does not exist" (bb nil "foo.clj")))
|
||||||
(is (thrown-with-msg? Exception #"does not exist" (bb nil "-help"))))
|
(is (thrown-with-msg? Exception #"does not exist" (bb nil "-help"))))
|
||||||
(is (= "1 2 3" (bb nil "-e" "(require '[clojure.string :as str1])" "-e" "(str1/join \" \" [1 2 3])"))))
|
(is (= "1 2 3" (bb nil "-e" "(require '[clojure.string :as str1])" "-e" "(str1/join \" \" [1 2 3])")))
|
||||||
|
(is (= '("-e" "1") (bb nil "-e" "*command-line-args*" "--" "-e" "1"))))
|
||||||
|
|
||||||
(deftest print-error-test
|
(deftest print-error-test
|
||||||
(is (thrown-with-msg? Exception #"java.lang.NullPointerException"
|
(is (thrown-with-msg? Exception #"java.lang.NullPointerException"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue