File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/lambdaisland/deep_diff2
test/lambdaisland/deep_diff2 Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- (ns lambdaisland.deep-diff2.strip
1+ (ns lambdaisland.deep-diff2.manipulate
22 " Provide API for manipulate the diff structure data "
33 (:require [clojure.walk :refer [postwalk]]
44 #?(:clj [lambdaisland.deep-diff2.diff-impl]
Original file line number Diff line number Diff line change 1- (ns lambdaisland.deep-diff2.strip -test
1+ (ns lambdaisland.deep-diff2.manipulate -test
22 (:require [clojure.test :refer [deftest testing is are]]
33 [lambdaisland.deep-diff2.diff-impl :as diff]
4- [lambdaisland.deep-diff2.strip :as strip ]
4+ [lambdaisland.deep-diff2.manipulate :as manipulate ]
55 [lambdaisland.deep-diff2 :as ddiff]))
66
77(deftest strip-test
1717 (testing " removing the same items"
1818 (let [x {:a 1 :b 2 :d {:e 1 } :g [:e [:k 14 :g 15 ]]}
1919 y {:a 1 :c 3 :d {:e 15 } :g [:e [:k 14 :g 15 ]]}]
20- (is (= (strip /remove-unchanged (ddiff/diff x y))
20+ (is (= (manipulate /remove-unchanged (ddiff/diff x y))
2121 {(diff/->Deletion :b ) 2
2222 :d {:e (diff/->Mismatch 1 15 )}
2323 (diff/->Insertion :c ) 3 })))))
You can’t perform that action at this time.
0 commit comments