class TEST_DIGRAPH |
---|
TEST |
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. |
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. |
class_name(nm:STR) .. Included as class_name |
---|
**** | Specify the name of the class being tested. Must be called first. |
compare_to_standard(msg: STR, g: $DIGRAPH{STR}) |
---|
**** | Test a graph assuming that it is of the form below
______0___1_____7 _______\/\_\ _______2__3_4 _______|/_/ _______5 _______| _______6 |
finish .. Included as finish |
---|
**** | Complete the testing on the current class. |
indi(s,d: INT): DIEDGE{INT} |
---|
main |
---|
**** | Tests of digraph classes |
me(n1,n2: INT): DIEDGE{STR} |
---|
**** | make edge |
print_graph(msg: STR,g: $DIGRAPH{STR}) |
---|
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. |