File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 1- {:min-bb-version " 0.4.0 "
1+ {:min-bb-version " 1.12.210 "
22 :paths [" bb" ]
33 :tasks
44 {test-jvm {:doc " Runs JVM tests"
Original file line number Diff line number Diff line change 3636
3737 (testing " records"
3838 (let [r (TestDissocRecord. 1 2 nil )]
39- (are [expected keys] #?(; bb preserves the record type even if a basis fields is dissociated
40- ; https://github.com/babashka/babashka/issues/1886
41- :bb (= expected (into {} (apply dissoc r keys)))
42- ; other implementations return a map
43- :default (= expected (apply dissoc r keys)))
39+ (are [expected keys] (= expected (apply dissoc r keys))
4440 {:b 2 :c nil } [:a ]
4541 {:b 2 :c nil } [:a :d ]
46- {} [:a :b :c ])
47- ; all implementations preserve the record type if no basis field is dissociated
48- (is (= r (dissoc r :d )))))
42+ {} [:a :b :c ]
43+ r [:d ])))
4944
5045 (testing " bad shape"
5146 (are [m keys] (thrown? #?(:cljs js/Error :default Exception) (apply dissoc m keys))
You can’t perform that action at this time.
0 commit comments