Add zero known-answer test for Euros
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
68a9088ec4
commit
d812434827
1 changed files with 6 additions and 0 deletions
|
|
@ -73,4 +73,10 @@ mod tests {
|
|||
"Mantissa should be equal to i64::MAX"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn from_0_cents_to_decimal_stays_zero() {
|
||||
let euros = Euros::from_cents(0);
|
||||
assert_eq!(euros.as_decimal(), Decimal::ZERO);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue