Repository navigation
Fix four cecb copy bugs and add regression coverage - #91
Merged
Merged
Conversation
Correct cassette file metadata and destination handling in cecb copy: - Map -1 to BASIC data file type 1 instead of machine-language type 2. - Construct output filenames when copying into native directories, handling paths with or without trailing slashes and rejecting truncated paths. - Convert line endings with -l only when crossing the native/CoCo boundary; preserve bytes for native-to-native and cassette-to-cassette copies. - Apply the binary default to tokenization (-t), allowing detokenization (-k) to mark its textual output as ASCII rather than binary. Add a cecbcommandtest executable using the existing TinyTest framework. Cover BASIC data metadata and contents, binary extraction into native folders with both trailing-slash forms, same-type line-ending preservation, and detokenized BASIC text with its ASCII header flag. Register the suite in the Unix test target and ignore the generated executable. Each new regression test was observed failing before its corresponding fix and passing afterward. Validation: make -C build/unix succeeds with all 68 tests passing; 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.
Correct cassette file metadata and destination handling in cecb copy:
-1to BASIC data file type 1 instead of machine-language type 2.Add a cecbcommandtest executable using the existing TinyTest framework. Cover BASIC data metadata and contents, binary extraction into native folders with both trailing-slash forms, same-type line-ending preservation, and detokenized BASIC text with its ASCII header flag. Register the suite in the Unix test target and ignore the generated executable.
Each new regression test was observed failing before its corresponding fix and passing afterward. Validation: make -C build/unix succeeds with all 68 tests passing; git diff --check passes.