RosettaCodeData/Task/Assertions/Forth/assertions.fth

5 lines
55 B
Forth

variable a
: assert a @ 42 <> throw ;
41 a ! assert