class TEST_RND


Ancestors
TEST



Public


Readonly Shareds
shared checked_tests:INT; .. Included as checked_tests
shared class_name_str:STR; .. Included as class_name_str
**** The name of the tested class.
shared failure_docs:FLIST{STR}; .. Included as failure_docs
**** The documentation of the failures.
shared failures:FLIST{INT}; .. Included as failures
**** The tests which failed.
shared test_number:INT; .. Included as test_number
**** Which test.

Writable Shareds
shared checked_tests:INT; .. Included as checked_tests
shared class_name_str:STR; .. Included as class_name_str
**** The name of the tested class.
shared failure_docs:FLIST{STR}; .. Included as failure_docs
**** The documentation of the failures.
shared failures:FLIST{INT}; .. Included as failures
**** The tests which failed.
shared test_number:INT; .. Included as test_number
**** Which test.

Features
class_name(nm:STR) .. Included as class_name
**** Specify the name of the class being tested. Must be called first.
finish .. Included as finish
**** Complete the testing on the current class.
gen_test(nm: STR, br: ROUT:FLTD,res:STR)
gen_test_bool(nm: STR, br: ROUT:BOOL,res:STR)
gen_test_int(nm: STR, br: ROUT:INT,res:STR)
main
**** Should test out the beginning of the sequence at least... Don't know if these test results are correct. These are just the current values that are being printed out. If the test fails, it just indicates that something has changed in FLTD/int arithmetic, not necc. an error
raise_test(testname:$STR,testrout:ROUT:FMT,should:STR) .. Included as raise_test
**** Performs the test with the desciption 'doc'. The routine 'testrout' is expected to raise an exception with the string representation 'should'.
test(doc_ds,does_ds,should_ds:$STR) .. Included as test
**** Perform the test with the description `doc', return value `does', and desired return value `should'. Keep track of failures.
unchecked_test(doc_ds,does_ds,should_ds:$STR) .. Included as unchecked_test
**** Perform the test with the description `doc', return value `does', and desired return value `should'. Don't keep track of failures.

The Sather Home Page