From 2ac4129e3f922bcd10f61b9723ce81d68cbbfd8d Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Mon, 30 Oct 2023 18:17:01 +0100 Subject: [PATCH] fix test --- test/sci/core_test.cljc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/sci/core_test.cljc b/test/sci/core_test.cljc index d1f8d7c2..b38e4156 100644 --- a/test/sci/core_test.cljc +++ b/test/sci/core_test.cljc @@ -1670,12 +1670,12 @@ #?(:clj (let [output (java.io.StringWriter.)] (is (= 1 (sci/binding [sci/out output] (sci/eval-string "(time 1)")))) - (is (re-matches #"\"Elapsed time: \d\.\d+ msecs\"\s+" (str output)))) + (is (re-matches #"\"Elapsed time: \d\.\d+ msecs\"\s*" (str output)))) :cljs (let [output (atom "") print-fn #(swap! output str %)] (is (= 1 (sci/binding [sci/print-fn print-fn] (sci/eval-string "(time 1)" {:classes {'js js/globalThis :allow :all}})))) - (is (re-matches #"\"Elapsed time: \d\.\d+ msecs\"" @output)))) + (is (re-matches #"\"Elapsed time: \d\.\d+ msecs\"\s*" @output)))) ) ;;;; Scratch