ANS Forth Test Programs
Last updated: 30 November 2009:
- Version 0.7 Includes a readme.html. Name changes to avoid
redefinition warnings.
- Version 0.6 corrected the case of some words to ensure the tests
will run on a case-sensitive system
- Version 0.5 includes a correction to the file-access tests.
- Version 0.4 to make some tests independent of cell size and to
use T{ and }T instead of { and } as the test words. This avoids
a clash with the Forth 200X use of { and } for Locals.
Here are some test programs that were written to test compliance of
my Forth system with ANS Forth. They are not comprehensive tests and
no claim is made about their being correct. Any comments will be
gratefully received, email
Gerry Jackson.
The tests use the methods in the test files developed by John Hayes
for testing the Core words in the ANS Forth standard, for convenience
a copy of these files are included below. In particular the file
tester.fr is required for all the test programs.
See the file readme.html.
anstests0.7.zip
contains the following files:
- tester.fr The John Hayes tester - does the testing
- core.fr John Hayes Core wordset tests
- coreplus.fth Some additional tests on Core words
- coreexttest.fth Core extension words (incomplete)
- doubletest.fth Double-Number word set and extensions
- exceptiontest.fth Exception word set and extensions
- filetest.fth File-Access word set and extensions
- memorytest.fth Memory-Allocation word set
- toolstest.fth Programming-Tools word set and extensions
(a few words in each)
- searchordertest.fth Search-Order word set and extensions
- stringtest.fth String word set
- runtests.fth to run all the above test files
- readme.html
Home