X-Git-Url: http://git.subgeniuskitty.com/pforth/.git/blobdiff_plain/bb6b2dcdd9acffabfd373c4c3f6b64a9cc43f335..40c6f87ff261cacf78377241c8746da1aaa504c5:/fth/t_case.fth diff --git a/fth/t_case.fth b/fth/t_case.fth index e1997fb..664ea63 100644 --- a/fth/t_case.fth +++ b/fth/t_case.fth @@ -1,16 +1,16 @@ -\ test CASE -anew test-case -: TCASE ( N -- ) - CASE - 0 OF ." is zero" ENDOF - 1 OF - 2 choose - CASE - 0 OF ." chose zero" ENDOF - 1 OF ." chose one" ENDOF - [ .s cr ." of-depth = " of-depth @ . cr ] - ENDCASE - ENDOF - [ .s cr ." of-depth = " of-depth @ . cr ] - ENDCASE -; +\ test CASE +anew test-case +: TCASE ( N -- ) + CASE + 0 OF ." is zero" ENDOF + 1 OF + 2 choose + CASE + 0 OF ." chose zero" ENDOF + 1 OF ." chose one" ENDOF + [ .s cr ." of-depth = " of-depth @ . cr ] + ENDCASE + ENDOF + [ .s cr ." of-depth = " of-depth @ . cr ] + ENDCASE +;