Skip to content

Feature/decb token metadata test - #92

Merged
DrPitre merged 3 commits into
nitros9project:mainfrom
tlindner:feature/decb-token-metadata-test
Oct 30, 2026
Merged

DrPitre merged 3 commits into
nitros9project:mainfrom
tlindner:feature/decb-token-metadata-test

Conversation

@tlindner

Copy link
Copy Markdown
Member

Add command-level regression coverage confirming that decb copy -t assigns the correct file metadata when tokenizing and detokenizing BASIC programs.

Verify that DECB does not share the CECB detokenization bug that marked
readable BASIC text as binary. DECB uses copy -t for both conversion
directions and already assigns the correct metadata, so this change
adds regression coverage without changing production code.

Add a command-level TinyTest case that creates a disk image, tokenizes
a two-line BASIC program into TOKENS.BAS, and detokenizes it into TEXT.BAS.
Check that both outputs have BASIC program file type 0, that the tokenized
file is marked binary (0), and that the detokenized file is marked ASCII
(255). Read back the text and compare its length and bytes with the
original source to verify the complete round trip.

Register the case in the existing decbcommandtest suite and remove its
source and disk-image fixtures after verification.

Validation: the new test passes against the existing implementation;
make -C build/unix succeeds with all 65 tests passing, including all six
DECB command tests. git diff --check passes.
Verify that DECB does not share the CECB detokenization bug that marked
readable BASIC text as binary. DECB uses copy -t for both conversion
directions and already assigns the correct metadata, so this change
adds regression coverage without changing production code.

Add a command-level TinyTest case that creates a disk image, tokenizes
a two-line BASIC program into TOKENS.BAS, and detokenizes it into TEXT.BAS.
Check that both outputs have BASIC program file type 0, that the tokenized
file is marked binary (0), and that the detokenized file is marked ASCII
(255). Read back the text and compare its length and bytes with the
original source to verify the complete round trip.

Register the case in the existing decbcommandtest suite and remove its
source and disk-image fixtures after verification.

Validation: the new test passes against the existing implementation;
make -C build/unix succeeds with all 65 tests passing, including all six
DECB command tests. git diff --check passes.
@DrPitre
DrPitre merged commit 9ee707f into nitros9project:main Oct 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants