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:
parent
1d1cf00b1e
commit
9a2b56f381
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue