You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: cover the reachable paths in negative-literal serialization
The bool-operand test asserted "${-True}", which no HCL input can
produce: UnaryOpRule serializes its operand with inside_dollar_string
set, and LiteralValueRule yields the string "true" in that context.
Assert the helper contract directly instead, and add TestNegatedKeywords
for the path a parse actually takes.
-1e10 lexes as a single FLOAT_LITERAL and never reaches the unary path.
Add the spaced form, which does, and whose operand is a string under
preserve_scientific_notation.
Pin -0 normalization, and add -0 and -true to the integers round-trip
suite. The spaced forms stay out of that fixture because the direct
pipeline normalizes the space away, which would break the byte-exact
direct-reconstruct assertion.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments