Modify test in Amount to kill mutants

Mutants found in weekly mutation testing.

Add an assert for both signed and unsigned to an existing test to kill
them.
This commit is contained in:
Jamil Lambert, PhD 2025-03-26 09:48:21 +00:00
parent 1d1cf00b1e
commit 9a2b56f381
No known key found for this signature in database
GPG Key ID: 54DC29234AB5D2C0
1 changed files with 5 additions and 0 deletions

View File

@ -104,8 +104,13 @@ fn from_str_zero_without_denomination() {
fn from_int_btc() {
let amt = Amount::from_btc_u16(2);
assert_eq!(sat(200_000_000), amt);
let amt = Amount::from_int_btc(2_u16);
assert_eq!(sat(200_000_000), amt);
let amt = SignedAmount::from_btc_i16(-2);
assert_eq!(ssat(-200_000_000), amt);
let amt = SignedAmount::from_int_btc(-2_i16);
assert_eq!(ssat(-200_000_000), amt);
}
#[test]