1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-12-25 06:29:17 +00:00
millfork/examples/tests
2020-07-31 18:43:50 +02:00
..
framework.mfk CoCo: Examples and tests 2020-07-31 16:07:49 +02:00
main.mfk Let the test suite compile on targets incompatible with encconv 2020-07-31 18:43:50 +02:00
README.md Implement readkey and readline for Apple II 2020-04-08 11:11:25 +02:00
test_encconv.mfk CoCo: Examples and tests 2020-07-31 16:07:49 +02:00
test_fibonacci.mfk Add pstring module 2020-04-06 00:44:20 +02:00
test_pstring.mfk Improve the test suite 2020-04-06 13:27:39 +02:00
test_string.mfk Improve the test suite 2020-04-06 13:27:39 +02:00
test_template.mfk Module templates 2020-06-03 23:13:17 +02:00

The test suite

This is the semi-official test suite for Millfork standard libraries.

Compiling

Compile the main.mfk file and run the resulting program. You are advised to try various different optimization options.

millfork -t <platform> main.mfk

Supported platforms:

  • Commodore 64, 128 and Plus/4, loadable program (c64, c128, plus4)

  • Commodore PET, VIC-20, C16, loadable program (pet, vic20, c16) note that support for these targets may end when the suite grows beyond their memory capacity

  • ZX Spectrum (zxspectrum)

  • NEC PC-88, bootable floppy (pc88)

  • MSX, cartridge (msx_crt)

  • Atari computers, loadable programs (a8)

  • Amstrad CPC, loadable programs (cpc464)

  • BBC Micro, loadable programs (bbcmicro)

  • Apple II, loadable programs (apple2)

Compiling with the -D PRINT_SUCCESSES will cause the suite to print all tests, including successful ones. Otherwise, only failed tests will be printed.

On each failed the following message will be printed:

[FAIL] <suite name> #<assertion number>

To continue, press any key (on MSX, press RETURN).

At the end of a successful run, the test suite should print

Total failures: 0