From f27c7063401bd6a16f5159cfb6e7dfad47d00b9d Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Fri, 31 Jan 2020 17:33:01 +0100 Subject: [PATCH] [#250] test --- test/babashka/main_test.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/babashka/main_test.clj b/test/babashka/main_test.clj index 5323610c..66c4a961 100644 --- a/test/babashka/main_test.clj +++ b/test/babashka/main_test.clj @@ -20,7 +20,8 @@ (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 "-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 (is (thrown-with-msg? Exception #"java.lang.NullPointerException"