Skip to content

fix: update stale testFieldAccess expected COBOL snapshot#2

Open
arnavsurve wants to merge 1 commit into
mainfrom
fix/stale-testfieldaccess-snapshot
Open

fix: update stale testFieldAccess expected COBOL snapshot#2
arnavsurve wants to merge 1 commit into
mainfrom
fix/stale-testfieldaccess-snapshot

Conversation

@arnavsurve

Copy link
Copy Markdown
Owner

Summary

examples/testFieldAccess.grc had several lines added after the expected output snapshot was last generated:

print("Changing user name...")
currentUser.userName = "Bob"
newName: string(20) = currentUser.userName
print("User name changed to " + newName)

The compiler handles all of these correctly — field reassignment, variable declaration from a field access, and string concatenation. The snapshot (examples/expected/testFieldAccess.cbl) just wasn't regenerated to match, causing a diff in any snapshot-based test run.

Regenerated the snapshot from the current source.

Test plan

  • Generated output matches snapshot exactly (diff clean)
  • All other examples/expected/ snapshots still match their sources

🤖 Generated with Claude Code

examples/testFieldAccess.grc had lines added (field reassignment,
variable declaration from field, and string concatenation print) that
were never reflected in the expected output snapshot. The compiler
handles them correctly — the snapshot simply wasn't regenerated.

Regenerated examples/expected/testFieldAccess.cbl from the current
source to bring it back in sync.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant