Remove deprecated tests
Unchecked methods have been removed in a previous commit, therefore the tests are no longer applicable.
This commit is contained in:
parent
1d3f42e589
commit
01af266335
|
@ -168,34 +168,6 @@ fn amount_checked_div_by_weight_floor() {
|
||||||
assert!(fee_rate.is_none());
|
assert!(fee_rate.is_none());
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
|
||||||
#[cfg(not(debug_assertions))]
|
|
||||||
fn unchecked_amount_add() {
|
|
||||||
let amt = Amount::MAX.unchecked_add(Amount::ONE_SAT);
|
|
||||||
assert_eq!(amt, Amount::ZERO);
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
#[cfg(not(debug_assertions))]
|
|
||||||
fn unchecked_signed_amount_add() {
|
|
||||||
let signed_amt = SignedAmount::MAX.unchecked_add(SignedAmount::ONE_SAT);
|
|
||||||
assert_eq!(signed_amt, SignedAmount::MIN);
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
#[cfg(not(debug_assertions))]
|
|
||||||
fn unchecked_amount_subtract() {
|
|
||||||
let amt = Amount::ZERO.unchecked_sub(Amount::ONE_SAT);
|
|
||||||
assert_eq!(amt, Amount::MAX);
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
#[cfg(not(debug_assertions))]
|
|
||||||
fn unchecked_signed_amount_subtract() {
|
|
||||||
let signed_amt = SignedAmount::MIN.unchecked_sub(SignedAmount::ONE_SAT);
|
|
||||||
assert_eq!(signed_amt, SignedAmount::MAX);
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(feature = "alloc")]
|
#[cfg(feature = "alloc")]
|
||||||
#[test]
|
#[test]
|
||||||
fn floating_point() {
|
fn floating_point() {
|
||||||
|
|
Loading…
Reference in New Issue