Add zero known-answer test for Euros

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Marcel Enguehard 2026-07-30 11:26:04 +02:00
parent 68a9088ec4
commit d812434827

View file

@ -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);
}
}