Commit 61db3c7
fix: update CBM CLI rejection test for new wire format
The CI Test job for #1065 failed because cli_tests.rs:445 still asserted
the old "num_cols must match matrix column count" error. Under the new
serde definition, extra num_rows/num_cols fields in the JSON are silently
ignored (serde's default behavior for unknown fields when not using
deny_unknown_fields), so the previous JSON now deserializes successfully
and the CLI no longer rejects it.
Switch the test to exercise the actual remaining input validation —
ragged-matrix rejection — which is what `validate_matrix_dimensions`
guards against and what the in-tree unit test now also covers. Rename
the test accordingly.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent c08cbd7 commit 61db3c7
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
426 | | - | |
| 426 | + | |
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
430 | | - | |
431 | | - | |
432 | | - | |
| 430 | + | |
433 | 431 | | |
434 | 432 | | |
435 | 433 | | |
436 | | - | |
| 434 | + | |
437 | 435 | | |
438 | 436 | | |
439 | 437 | | |
| |||
442 | 440 | | |
443 | 441 | | |
444 | 442 | | |
445 | | - | |
| 443 | + | |
446 | 444 | | |
447 | 445 | | |
448 | 446 | | |
| |||
0 commit comments