The

http://www.rebol.org/view-script.r?script=test-framework.r

is the test framework used to test R2 and R3 core. Related scripts are:

http://www.rebol.org/view-script.r?script=core-tests-run-safe.r

and

http://www.rebol.org/view-script.r?script=core-tests-run.r

demonstrating how to run the core tests.

The core tests are in the

http://www.rebol.org/view-script.r?script=core-test-package.r

The doc article is at:

http://www.rebol.org/art-display-article.r?article=n28vx

I want to make some volunteers coauthors of the

http://www.rebol.org/view-script.r?script=core-test-package.r

to help me adding new tests, and/or update the old ones. Please, contact me 
privately in case you are interested.

-TIA Ladislav

P.S.

If you want to compare your test results, the last row in my 
%cpl_2_100_107_3_1.log file is:

Total: 3822 Succeeded: 3769 Failed: 53

There is one issue I want to discuss:

the test framework handles the tests as "chunks of text", thus, not needing to 
rely on accuracy of MOLD or MOLD/ALL, as well as being able to test even the 
loadability of the tests

Due to the above reasons, I see this property of the test dialect as 
*absolutely essential*. Nevertheless, the textual character of the test cases 
is not "absolute", the test cases have to be in "propertly matched 
parentheses". This is actually a quite strong requirement, since e.g. a file 
containing a "test case" like:

    [ (])]

, or:

    ["]

as a different example aren't test cases, and a file containing them would not 
be considered well-formed.

There is a possibility to relax this requirement even more using the heredoc 
convention, e.g. like this

<<<mytest
"
mytest

, where the

<<<mytest

and

mytest

"tags" mark the beginning and the end of the test. If this convention were 
chosen, the example test would become a "well-formed test" (which would fail 
being not loadable, though), as opposed to the current state.

My question is, which alternative is preferred by people who intend to write 
(or even read) some tests. 

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to