test(core): the reversal bridge reaches the refusal
reverse_target_agrees claimed to compare refusal agreement, but arb_cents is bounded to +/-2^40, so the i64::MIN arm of reverse_target's match never ran: the bridge compared two answers, never a refusal. The edge strategy now includes i64::MIN and i64::MAX, and the None arm is checked: at least one amount is i64::MIN, and Decimal (which can hold the negation) answers the exact opposite. The docs say that plainly instead of claiming the two types refuse the same values. Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
This commit is contained in:
1 parent
176b59cc4f
commit
5a029f3cab
2 files changed
+38
-11
No files matched your search
@@ -45,9 +45,12 @@ verification, 3 covers, build included).
|
||||
- `part_weight_agrees`: `part_weight` is the same weight at `i32`, `i64`
|
||||
and `i128`, and `None` exactly for a part no month has (laws 26-28).
|
||||
- `reverse_target_agrees`: `reverse_target` is the exact opposite at both
|
||||
types and refuses the same out-of-range inputs (law 24). The earlier
|
||||
bridge only passed it to `and_then`, which is a mention, not a call; this
|
||||
property calls it.
|
||||
types. The edge strategy reaches `i64::MIN`, which `i64` refuses because
|
||||
no negation can hold it; `Decimal` can hold the negation, so the property
|
||||
compares its answer there (the exact opposite). The refusal is the
|
||||
integer proof model's bound, not the law's. The earlier bridge only
|
||||
passed it to `and_then`, which is a mention, not a call; this property
|
||||
calls it.
|
||||
|
||||
Why these laws: `Direction::of` is the sign classification the party
|
||||
direction law (23) is stated over, and `part_weight` is the weight the
|
||||
|
||||
Reference in new issue
Block a user