From 60c73d21a66956ac71364b59a5377668ae53a6a0 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Mon, 17 Aug 2020 12:42:27 +0200 Subject: [PATCH] [#535] use distinct instead of dedupe --- src/babashka/main.clj | 2 +- test/babashka/classpath_test.clj | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/babashka/main.clj b/src/babashka/main.clj index 78b13121..4d570197 100644 --- a/src/babashka/main.clj +++ b/src/babashka/main.clj @@ -604,7 +604,7 @@ If neither -e, -f, or --socket-repl are specified, then the first argument that uberscript (let [uberscript-out uberscript] (spit uberscript-out "") ;; reset file - (doseq [s (dedupe @uberscript-sources)] + (doseq [s (distinct @uberscript-sources)] (spit uberscript-out s :append true)) (spit uberscript-out preloads :append true) (spit uberscript-out expression :append true))) diff --git a/test/babashka/classpath_test.clj b/test/babashka/classpath_test.clj index 618f2d8d..e08d25e6 100644 --- a/test/babashka/classpath_test.clj +++ b/test/babashka/classpath_test.clj @@ -42,7 +42,6 @@ (tu/bb nil "--file" (.getPath tmp-file) "1" "2" "3" "4"))) (testing "order of namespaces is correct" (tu/bb nil "--classpath" "test-resources/babashka/uberscript/src" "-m" "my.main" "--uberscript" (.getPath tmp-file)) - (prn (slurp (.getPath tmp-file))) (is (= "(\"1\" \"2\" \"3\" \"4\")\n" (tu/bb nil "--file" (.getPath tmp-file) "1" "2" "3" "4"))))))