Skip to content

Commit e1c3f15

Browse files
committed
fix: test:expect should use the same error reporter as test:eq
1 parent 9107dc2 commit e1c3f15

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Testing.ark

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@
140140
# @author https://github.com/SuperFola
141141
($ test:expect (_cond ..._desc) {
142142
(if (!= true _cond)
143-
{
144-
(set _failed (+ 1 _failed))
145-
(append! _failures (str:format "{} returned {}{}" ($repr _cond) _cond) (_test_desc _desc))}
143+
(_report_error true _cond "true" ($repr _cond) _desc)
146144
(_report_success))})
147145

148146
# @brief Compare two values that should be equal and generate a test case

0 commit comments

Comments
 (0)