Repository navigation
Stop property tests from generating _b and other reserved names as variables - #388
Conversation
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. Next included review available in 52 minutes. View limit details
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…riables Since #386, `summarize _b` reports no undefined variable, because `_b` is one of Stata's reserved names, not a variable. The severity-settings property test still drew `_b` as a variable name and failed about one run in six. Co-Authored-By: Claude Opus 5.5 <[email protected]>
f0cdd6b to
8587267
Compare
tests/property/severity-settings.prop.test.tsfailed about one run in six. Since #386,summarize _bno longer reports_bas an undefined variable, because_bis one of Stata's reserved names. The test expects an undefined-variable diagnostic for a name fromarbitrary_non_reserved_identifier(), and that generator could still return_b.The generator now skips Stata's reserved underscore names and
_se.Proof: on main, the flaky file failed 4 of 25 runs (counterexample
["_b","error"]). With this change it passed 25 of 25.bun test ./tests/propertypasses (2482 tests) and typecheck passes.Reviewed with sol-loop: 1 round with gpt-6.1-sol. Sol verdict: approved
Created with Claude Opus 5.5 in T3 Code.
Summary by CodeRabbit
_se, alongside existing excluded keywords and command names.