From 0fd774670fac6ffef14417bb111d0befa4381b62 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Thu, 10 Oct 2024 13:47:52 +0200 Subject: [PATCH] fix test --- test/babashka/error_test.clj | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/babashka/error_test.clj b/test/babashka/error_test.clj index d3230f75..74aba8af 100644 --- a/test/babashka/error_test.clj +++ b/test/babashka/error_test.clj @@ -93,7 +93,7 @@ clojure.core// - foo - foo.clj:1:10")))) (deftest static-call-test - (let [output (try (tu/bb nil "-e" "File/x") + #_(let [output (try (tu/bb nil "-e" "File/x") (catch Exception e (ex-message e)))] (is (str/includes? (tu/normalize output) "----- Error -------------------------------------------------------------------- @@ -106,11 +106,11 @@ Location: :1:1 ^--- No matching field found: x for class java.io.File ----- Stack trace -------------------------------------------------------------- -user - :1:1")) - (let [output (try (tu/bb nil "-e" "(File/x)") - (catch Exception e (ex-message e)))] - (is (str/includes? (tu/normalize output) - "----- Error -------------------------------------------------------------------- +user - :1:1"))) + (let [output (try (tu/bb nil "-e" "(File/x)") + (catch Exception e (ex-message e)))] + (is (str/includes? (tu/normalize output) + "----- Error -------------------------------------------------------------------- Type: java.lang.IllegalArgumentException Message: No matching method x found taking 0 args Location: :1:1 @@ -120,7 +120,7 @@ Location: :1:1 ^--- No matching method x found taking 0 args ----- Stack trace -------------------------------------------------------------- -user - :1:1"))))) +user - :1:1")))) (deftest error-while-macroexpanding-test