diff --git a/Makefile b/Makefile deleted file mode 100644 index f7122df..0000000 --- a/Makefile +++ /dev/null @@ -1,12 +0,0 @@ - -.PHONY: src - -codestyle: - cljfmt fix ./src - -lint: - @clj-kondo --lint src - -tests: - @make codestyle - @make lint diff --git a/bb.edn b/bb.edn index cee823b..34d058c 100644 --- a/bb.edn +++ b/bb.edn @@ -5,4 +5,4 @@ (run 'lint:kondo)) lint:cs (shell "cljfmt fix") lint:cs:check (shell "cljfmt check") - lint:kondo (shell "clj-kondo --lint FourClojure")}} + lint:kondo (shell "clj-kondo --lint test")}} diff --git a/test/code_basics/p8_state_test.clj b/test/code_basics/p8_state_test.clj index 06031ca..bff9721 100644 --- a/test/code_basics/p8_state_test.clj +++ b/test/code_basics/p8_state_test.clj @@ -22,7 +22,7 @@ ; 38. https://code-basics.com/ru/languages/clojure/lessons/atoms-validation (defn vec-even? [vector] - (and (not (empty? vector)) + (and (not (boolean (empty? vector))) (vector? vector) (every? even? vector))) diff --git a/test/four_clojure_org/p001_10/p10_test.clj b/test/four_clojure_org/p001_10/p10_test.clj index a002376..2b6bbc4 100644 --- a/test/four_clojure_org/p001_10/p10_test.clj +++ b/test/four_clojure_org/p001_10/p10_test.clj @@ -7,11 +7,11 @@ ; functions. Commas are whitespace. (def __ (:b {:a 10 -:b 20 -:c 30})) + :b 20 + :c 30})) (deftest problem-test (is (= __ ((hash-map :a 10, :b 20, :c 30) :b))) (is (= __ (:b {:a 10, -:b 20, -:c 30})))) + :b 20, + :c 30})))) diff --git a/test/four_clojure_org/p011_20/p11_test.clj b/test/four_clojure_org/p011_20/p11_test.clj index 2c0e626..5cb8096 100644 --- a/test/four_clojure_org/p011_20/p11_test.clj +++ b/test/four_clojure_org/p011_20/p11_test.clj @@ -10,5 +10,5 @@ (deftest problem-test (is (= {:a 1, -:b 2, -:c 3} (conj {:a 1} __ [:c 3])))) \ No newline at end of file + :b 2, + :c 3} (conj {:a 1} __ [:c 3])))) \ No newline at end of file