Skip to content

Commit 5d21825

Browse files
committed
Empty the stack upon failure
1 parent a0baf98 commit 5d21825

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ttester-codewars.4th

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ variable DIFFERENCES
2929
." , got "
3030
RESULTS @ 0 do ACTUAL-RESULTS i cells + @ . loop
3131
cr
32+
EMPTY-STACK
3233
else
3334
passed# ." Test Passed" cr
3435
then
3536
then
3637
else
37-
failed# ." Wrong number of results, expected " ACTUAL-DEPTH @ . ." , got " depth . cr
38+
failed# ." Wrong number of results, expected " ACTUAL-DEPTH @ . ." , got " depth . cr EMPTY-STACK
3839
then
3940
F} ;

0 commit comments

Comments
 (0)