Commit d1e6b8b
committed
test: use assert-cmp for the order comparisons in json_input_no_sort
Replace the bare boolean `assert!` comparisons with `assert_op!` from the
already-declared `assert-cmp` crate so a failure reports both operand
values. Bind the positions to locals first, as the simple macro form and
the `perfectionist::macro-argument-binding` lint both require.
https://claude.ai/code/session_01Nj3xEp1eoDKRp1MUCxNQRQ1 parent f5c94ba commit d1e6b8b
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
254 | | - | |
255 | | - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
256 | 261 | | |
257 | 262 | | |
258 | 263 | | |
| |||
0 commit comments