Commit fd5b81a
parse_pairs in lib/judges/options.rb returned [key, nil] for any
token without an equals sign, then normalize_to_h dropped that nil
value with .compact before transform_values could turn it into 'true'.
Producing 'true' directly inside parse_pairs makes the documented
contract hold for both the string and array forms without changing
the hash-input behavior that test_with_nil_values pins.
Co-authored-by: Claude <noreply@anthropic.com>
1 parent fdd7cca commit fd5b81a
2 files changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
55 | 68 | | |
56 | 69 | | |
57 | 70 | | |
| |||
0 commit comments