Commit 2f7d8f3
fix: address Copilot review — input validation and flexible test assertion
- Bash: reject non-numeric --number with clear error before arithmetic
- PowerShell: reject negative -Number values (< 1) with clear error
- Test: use regex for elseif assertion to tolerate whitespace changes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e602275 commit 2f7d8f3
3 files changed
Lines changed: 12 additions & 2 deletions
File tree
- scripts
- bash
- powershell
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
266 | 270 | | |
267 | 271 | | |
268 | 272 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
217 | 221 | | |
218 | 222 | | |
219 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
426 | | - | |
427 | | - | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
0 commit comments