Skip to content

Commit

Permalink
less overwhemling output
Browse files Browse the repository at this point in the history
  • Loading branch information
frenchy64 committed May 1, 2024
1 parent 7b4d817 commit cd06539
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/java_time/dev/gen_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
(deftest gen-test
(doseq [[source nsym] (doto @(resolve 'java-time.dev.gen/gen-source->nsym)
(-> not-empty assert))]
(is (= (slurp source)
(with-out-str ((resolve 'java-time.dev.gen/print-java-time-ns)
nsym)))
(format "%s namespace is out of date -- call (java-time.dev.gen/spit-java-time-ns) or `$ lein doc`"
nsym)))))
(let [actual (slurp source)
expected (with-out-str ((resolve 'java-time.dev.gen/print-java-time-ns)
nsym))
up-to-date? (= actual expected)]
(is (not up-to-date?)
"Please run `lein doc` and commit the changes")))))

0 comments on commit cd06539

Please sign in to comment.