Files
R8Forge/tests
dsh ba5a8a465d tests/widths.ps1: assert the calculator at every width, not just print it
The script used to build the toolchain per width, run the widthfree label and
print whatever the calculator produced.  It now checks:

  * widthfree ctest label passes;
  * examples/calc.r8asm assembles, and `12 34 + .` prints exactly D digits where
    D = floor(W * 30103 / 100000) + 1 -- the width's digit count, computed the same
    way the library computes it.  A build that silently ignored the width would
    print four digits and fail here instead of looking green;
  * if ROT-8-viz is built next door, it runs the same tape and prints the same
    thing, which makes the three way check part of the matrix.

Also fixes the invocation: `-Widths` is a comma separated string now, because
`powershell -File ... -Widths 11,16` binds as one string and 11,16 became 1116.

Measured at cell 11 (the default): widthfree ok, tape 62585, calc ok
`out 62 32 48 48 52 54 10`, viz ok `> 0046`.  Default list is 7,8,11,16,17,31,32;
each width is a full toolchain build, so the whole run is about twenty minutes.
2026-11-15 18:47:21 +08:00
..
2026-11-06 13:54:46 +08:00