We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b4d817 commit cd06539Copy full SHA for cd06539
test/java_time/dev/gen_test.clj
@@ -7,8 +7,9 @@
7
(deftest gen-test
8
(doseq [[source nsym] (doto @(resolve 'java-time.dev.gen/gen-source->nsym)
9
(-> not-empty assert))]
10
- (is (= (slurp source)
11
- (with-out-str ((resolve 'java-time.dev.gen/print-java-time-ns)
12
- nsym)))
13
- (format "%s namespace is out of date -- call (java-time.dev.gen/spit-java-time-ns) or `$ lein doc`"
14
- 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?)
15
+ "Please run `lein doc` and commit the changes")))))
0 commit comments