From 38c7bc1c172b399fd20ef2014ad99b1afbb7c78f Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Fri, 12 Mar 2021 10:52:11 +0100 Subject: [PATCH] [#667] Add 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 165601be..c590d89a 100644 --- a/test/babashka/main_test.clj +++ b/test/babashka/main_test.clj @@ -565,7 +565,8 @@ (deftest var-print-method-test (when test-utils/native? - (is (bb nil "(defmethod print-method sci.lang.IVar [o w] (.write w (str :foo (symbol o)))) (def x 1) (= \":foouser/x\" (pr-str #'x))")))) + (is (bb nil "(defmethod print-method sci.lang.IVar [o w] (.write w (str :foo (symbol o)))) (def x 1) (= \":foouser/x\" (pr-str #'x))")) + (is (= :foouser/x (bb nil "(defmethod print-method sci.lang.IVar [o w] (.write w (str :foo (symbol o)))) (def x 1)"))))) ;;;; Scratch