Repository navigation
Feature/decb token metadata test - #92
Merged
DrPitre merged 3 commits intoOct 30, 2026
Merged
Conversation
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.
This reverts commit a04b803.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add command-level regression coverage confirming that decb copy -t assigns the correct file metadata when tokenizing and detokenizing BASIC programs.