diff --git a/bb.edn b/bb.edn index 83f2ace..f8cec05 100644 --- a/bb.edn +++ b/bb.edn @@ -1,4 +1,4 @@ -{:min-bb-version "0.4.0" +{:min-bb-version "1.12.210" :paths ["bb"] :tasks {test-jvm {:doc "Runs JVM tests" diff --git a/test/clojure/core_test/dissoc.cljc b/test/clojure/core_test/dissoc.cljc index 70bd32f..ebfde63 100644 --- a/test/clojure/core_test/dissoc.cljc +++ b/test/clojure/core_test/dissoc.cljc @@ -36,16 +36,11 @@ (testing "records" (let [r (TestDissocRecord. 1 2 nil)] - (are [expected keys] #?(; bb preserves the record type even if a basis fields is dissociated - ; https://github.com/babashka/babashka/issues/1886 - :bb (= expected (into {} (apply dissoc r keys))) - ; other implementations return a map - :default (= expected (apply dissoc r keys))) + (are [expected keys] (= expected (apply dissoc r keys)) {:b 2 :c nil} [:a] {:b 2 :c nil} [:a :d] - {} [:a :b :c]) - ; all implementations preserve the record type if no basis field is dissociated - (is (= r (dissoc r :d))))) + {} [:a :b :c] + r [:d]))) (testing "bad shape" (are [m keys] (thrown? #?(:cljs js/Error :default Exception) (apply dissoc m keys))