Commit 6758bc3
authored
Fix test nitpicks: pin expected digests, reuse helpers, fix f64 precision (#7)
- eip712: Replace determinism-only checks with pinned canonical EIP-712
digest vectors for Permit and Permit2 PermitSingle tests
- hd_wallet: Pin exact expected master key and chain_code bytes for
BIP-32 test instead of non-zero checks
- secp256k1: Replace manual half-order comparison with existing isHighS
helper and HALF_ORDER_BYTES constant
- units: Use 9007.0 ETH (within f64 exact integer range) instead of
10000.0 to avoid misleading f64 precision behavior1 parent 68cc5fe commit 6758bc3
4 files changed
Lines changed: 16 additions & 53 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1058 | 1058 | | |
1059 | 1059 | | |
1060 | 1060 | | |
1061 | | - | |
1062 | 1061 | | |
1063 | | - | |
1064 | | - | |
1065 | | - | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
1066 | 1065 | | |
1067 | 1066 | | |
1068 | 1067 | | |
| |||
1198 | 1197 | | |
1199 | 1198 | | |
1200 | 1199 | | |
1201 | | - | |
1202 | 1200 | | |
1203 | | - | |
1204 | | - | |
1205 | | - | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
1206 | 1204 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | 238 | | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
258 | 244 | | |
259 | 245 | | |
260 | 246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | 504 | | |
513 | 505 | | |
514 | 506 | | |
515 | 507 | | |
516 | 508 | | |
517 | 509 | | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
535 | 513 | | |
536 | 514 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
0 commit comments