Commit b0902a7
refactor(contract): extract compareCodeUnits helper; trim test comment
Address review on #721: name the deterministic comparator so its intent
reads from the code (not a bare `<`/`>`), and drop the verbose inline
comment from the regression test (the test name carries the intent).
No behavioural change — still UTF-16 code-unit, collation-independent order.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Will Madden <madden@prisma.io>1 parent a9b0b88 commit b0902a7
2 files changed
Lines changed: 8 additions & 4 deletions
File tree
- packages/1-framework/0-foundation/contract
- src
- test
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
14 | 21 | | |
15 | 22 | | |
16 | 23 | | |
17 | | - | |
| 24 | + | |
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 100 | | |
104 | 101 | | |
105 | 102 | | |
| |||
0 commit comments