* Add tests for markdown-clj and tools.namespace
See comment for why only one markdown test could be run.
Closes #1069 and #1064
* Convert 10 test libs using add-libtest
Also improved add-libtest to only require maven artifact
and rely on clojars for getting git-url most of the time
* Convert 8 more test libs using add-libtest
Also updated table and added comment for newline test
* Fix doric test
* Disable tools.namespace test that fails on windows
* Added dozen manual test libs and converted 2 test libs
add-libtest.clj supports manually-added and test-directories options
* Converts last tests to test namespaces and write libraries.csv
* Add a number of library tests from projects.md
Also add more docs around adding test libs and tweak add script
* Use :sha for gitlib and older clojure cli
* Revert "Use :sha for gitlib and older clojure cli"
This reverts commit c663ab8368.
* Fix and disable failing tests
Disabled tests that fail consistently and fixed windows one
26 lines
851 B
Clojure
26 lines
851 B
Clojure
(ns expound.specs-test
|
|
(:require [expound.specs]
|
|
[clojure.spec.alpha :as s]
|
|
[clojure.test :as ct :refer [is deftest use-fixtures]]
|
|
[expound.test-utils :as test-utils]
|
|
[expound.alpha :as expound]))
|
|
|
|
(use-fixtures :once
|
|
test-utils/check-spec-assertions
|
|
test-utils/instrument-all)
|
|
|
|
(deftest provided-specs
|
|
(binding [s/*explain-out* (expound/custom-printer {:print-specs? false})]
|
|
(is (= "-- Spec failed --------------------
|
|
|
|
1
|
|
|
|
should be a keyword with no namespace
|
|
|
|
-------------------------
|
|
Detected 1 error
|
|
"
|
|
(s/explain-str :expound.specs/simple-kw 1)))
|
|
(doseq [kw expound.specs/public-specs]
|
|
(is (some? (s/get-spec kw)) (str "Failed to find spec for keyword " kw))
|
|
(is (some? (expound/error-message kw)) (str "Failed to find error message for keyword " kw)))))
|