tst - Module testing
Module Description
The tst module implements a module testing framework.
Module Words
Test syntax words
t{
( -- )
Start a test
}t
( i*x j*r -- )
Check for stack overflow
Test value words
?s
( n1 n2 -- )
Check for signed value on stack
?u
( u1 u2 -- )
Check for unsigned value on stack
?d
( d1 d2 -- )
Check for a signed double on stack
?ud
( ud1 ud2 -- )
Check for an unsigned double on stack
?0
( x -- )
Check for zero value on stack
?nil
( addr -- )
Check for nil value on stack
?true
( flag -- )
Check for true value on stack
?false
( flag -- )
Check for false value on stack
?r
( r1 r2 -- )
Check for float value on stack
?str
( c-addr1 u1 c-addr2 u2 -- )
Check for a string on the stack
Test results words
tst-reset-tests
( -- )
Reset the test results
tst-get-result
( -- u1 u2 u3 )
Get the test results, return the test time u1, the number of tests u2 and the number of errors u3
generated 10-Apr-2008 by
ofcfrth-0.5.0