Remove deprecated tests

Unchecked methods have been removed in a previous commit, therefore the
tests are no longer applicable.
This commit is contained in:
yancy 2024-12-17 13:11:59 -06:00
parent 1d3f42e589
commit 01af266335
1 changed files with 0 additions and 28 deletions

View File

@ -168,34 +168,6 @@ fn amount_checked_div_by_weight_floor() {
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")]
#[test]
fn floating_point() {