Skip to content

Commit 30f275a

Browse files
committed
refactor: rename $paste to $as-is
1 parent baa2136 commit 30f275a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Testing.ark

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@
173173
# =end
174174
# @author https://github.com/SuperFola
175175
($ test:expect (_cond ..._desc) {
176-
(if (!= true ($paste _cond))
177-
(testing:_report_error true ($paste _cond) "true" ($repr _cond) _desc)
176+
(if (!= true ($as-is _cond))
177+
(testing:_report_error true ($as-is _cond) "true" ($repr _cond) _desc)
178178
(testing:_report_success)) })
179179

180180
# @brief Compare two values that should be equal and generate a test case
@@ -188,9 +188,9 @@
188188
# =end
189189
# @author https://github.com/SuperFola
190190
($ test:eq (_expected _expr ..._desc) {
191-
(if (= ($paste _expected) ($paste _expr))
191+
(if (= ($as-is _expected) ($as-is _expr))
192192
(testing:_report_success)
193-
(testing:_report_error ($paste _expected) ($paste _expr) ($repr _expected) ($repr _expr) _desc)) })
193+
(testing:_report_error ($as-is _expected) ($as-is _expr) ($repr _expected) ($repr _expr) _desc)) })
194194

195195
# @brief Compare two values that should **not** be equal and generate a test case
196196
# @param _unexpected the value we don't want
@@ -202,9 +202,9 @@
202202
# =end
203203
# @author https://github.com/SuperFola
204204
($ test:neq (_unexpected _value ..._desc) {
205-
(if (!= ($paste _unexpected) ($paste _value))
205+
(if (!= ($as-is _unexpected) ($as-is _value))
206206
(testing:_report_success)
207-
(testing:_report_error ($paste _unexpected) ($paste _value) ($repr _unexpected) ($repr _value) _desc)) })
207+
(testing:_report_error ($as-is _unexpected) ($as-is _value) ($repr _unexpected) ($repr _value) _desc)) })
208208

209209
# @brief Generate the code for a test suite
210210
# @details Create two variables: _name-output (a list: [successes, failures]) and _name-status (boolean, true on success)
@@ -222,7 +222,7 @@
222222

223223
(let ($symcat _name "-output") (testing:_runner
224224
($repr _name)
225-
(fun () ($paste
225+
(fun () ($as-is
226226
{
227227
_body }))))
228228
(let ($symcat _name "-status") (= 0 (@ ($symcat _name "-output") 1))) })

0 commit comments

Comments
 (0)