Skip to content

Commit

Permalink
update deps and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
huahaiy committed Sep 24, 2024
1 parent bf7609f commit 355f746
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject juji/editscript "0.6.3"
(defproject juji/editscript "0.6.4"
:description "A diff library for Clojure/ClojureScript data structures"
:url "https://github.com/juji-io/editscript"
:lein-release {:deploy-via :clojars}
Expand All @@ -8,7 +8,7 @@
:sign-releases false}]]
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.11.1"]]
:dependencies [[org.clojure/clojure "1.12.0"]]
:plugins [[lein-cljsbuild "1.1.7"]
[lein-doo "0.1.10"]]
:doo {:build "node"
Expand Down Expand Up @@ -51,7 +51,7 @@
{:aot [#"editscript\.*"]
:jvm-opts ["-Dclojure.compiler.direct-linking=true"] }
:dev
{:dependencies [[org.clojure/clojurescript "1.11.60"
{:dependencies [[org.clojure/clojurescript "1.11.132"
:exclusions [org.clojure/core.rrb-vector]]
;;see https://github.com/emezeske/lein-cljsbuild/issues/469
[quantum/org.clojure.core.rrb-vector "0.0.12"]
Expand Down
6 changes: 3 additions & 3 deletions test/editscript/core_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,15 @@
(is (= b (patch a d-q)))))

(deftest vec-timeout-test
(let [a (vec (range 3000))
(let [a (vec (range 30000))
b (vec (concat (range 100) [213 222 223 224 123] (range 300 800)
[100 950 221 897 1232] (range 990 2810)))
[100 950 221 897 1232] (range 990 2810) (range 2810 30000)))
d (diff a b)
d-o (diff a b {:vec-timeout 1})
d-q (diff a b {:vec-timeout 1 :algo :quick})
]
(is (= b (patch a d)))
(is (= (e/edit-distance d) 575))
(is (< 1 (e/edit-distance d)))
(is (= b (patch a d-o)))
(is (= (e/edit-distance d-o) 1))
(is (= b (patch a d-q)))
Expand Down

0 comments on commit 355f746

Please sign in to comment.