Skip to content

Commit 031f55f

Browse files
committed
fix #27
1 parent 528c264 commit 031f55f

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
Only accretive/fixative changes will be made from now on.
88

9+
* 2.0.next in progress
10+
* Address [#27](https://github.com/clojure-expectations/clojure-test/issues/27) by changing `refer`'d note in stub macros' docstrings.
11+
912
* 2.0.160 -- 2022-03-26
1013
* Fix [#28](https://github.com/clojure-expectations/clojure-test/issues/28) by recognizing qualified calls to `expect` (to suppress legacy behavior in more cases).
1114
* Update `build-clj` to v0.8.0.

src/expectations/clojure/test.cljc

+5-5
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
`(expect 2 (in [1 2 3]))`
5959
6060
`in` may only be used inside `expect` and is a purely syntactic construct.
61-
It should not be `refer`'d nor used as a qualified symbol."
61+
This macro can be `refer`'d to satisfy tooling like `clj-kondo`."
6262
[coll]
6363
(bad-usage "in"))
6464

@@ -71,7 +71,7 @@
7171
`(expect even? (from-each [v (range 10)] (* 2 v)))`
7272
7373
`from-each` may only be used inside `expect` and is a purely syntactic construct.
74-
It should not be `refer`'d nor used as a qualified symbol."
74+
This macro can be `refer`'d to satisfy tooling like `clj-kondo`."
7575
[bindings & body]
7676
(bad-usage "from-each"))
7777

@@ -86,7 +86,7 @@
8686
`(expect (more-of [a b] string? a int? b) [\"test\" 42])`
8787
8888
`more-of` may only be used inside `expect` and is a purely syntactic construct.
89-
It should not be `refer`'d nor used as a qualified symbol."
89+
This macro can be `refer`'d to satisfy tooling like `clj-kondo`."
9090
[destructuring & expected-actual-pairs]
9191
(bad-usage "more-of"))
9292

@@ -99,7 +99,7 @@
9999
`(expect (more-> string? (first) int? (second)) [\"test\" 42])`
100100
101101
`more->` may only be used inside `expect` and is a purely syntactic construct.
102-
It should not be `refer`'d nor used as a qualified symbol."
102+
This macro can be `refer`'d to satisfy tooling like `clj-kondo`."
103103
[& expected-threaded-pairs]
104104
(bad-usage "more->"))
105105

@@ -112,7 +112,7 @@
112112
`(expect (more int? even?) 42)`
113113
114114
`more` may only be used inside `expect` and is a purely syntactic construct.
115-
It should not be `refer`'d nor used as a qualified symbol."
115+
This macro can be `refer`'d to satisfy tooling like `clj-kondo`."
116116
[& expecteds]
117117
(bad-usage "more"))
118118

0 commit comments

Comments
 (0)