Skip to content

fix(assert): preserve literal snapshot flag values - #1449

Merged
Chemaclass merged 18 commits into
mainfrom
fix/1402-snapshot-dash-value
Oct 30, 2026
Merged

Chemaclass merged 18 commits into
mainfrom
fix/1402-snapshot-dash-value

Conversation

@Chemaclass

Copy link
Copy Markdown
Member

Background

Closes #1402. Snapshot values such as -n were consumed as echo flags and saved as empty files. Creating and updating snapshots now writes them literally.

Changes

  • Use printf for both snapshot writes, preserving the existing trailing newline.
  • Verify create, repeat comparison and update for -n, -e, -E and combined flags.
  • Focused checks: 60 snapshot cases, 47 strict cases, 47 on Bash 3.0 (three expected skips), ShellCheck and formatting.

Checklist

  • I updated the CHANGELOG.md to reflect the new feature or fix
  • I updated the documentation to reflect the changes (the documented snapshot behavior is unchanged)

@Chemaclass Chemaclass added the bug Something isn't working label Oct 29, 2026
@Chemaclass Chemaclass self-assigned this Oct 29, 2026
@Chemaclass
Chemaclass enabled auto-merge (squash) October 29, 2026 22:11
@Chemaclass
Chemaclass disabled auto-merge October 29, 2026 22:27
@Chemaclass
Chemaclass changed the base branch from main to fix/1425-init-workflow-keeps-spaced-path October 29, 2026 22:44
Base automatically changed from fix/1425-init-workflow-keeps-spaced-path to fix/1422-scan-function-keyword-without-parens October 30, 2026 06:44
Base automatically changed from fix/1422-scan-function-keyword-without-parens to main October 30, 2026 07:14
@Chemaclass
Chemaclass merged commit ca6ba70 into main Oct 30, 2026
37 checks passed
@Chemaclass
Chemaclass deleted the fix/1402-snapshot-dash-value branch October 30, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A snapshot of a value that is exactly -n, -e or -E is recorded empty

2 participants