Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-marinica committed Jul 4, 2024
1 parent 3b2b4c8 commit 8eea61e
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions framework/scenario/tests/managed_decimal_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,46 +454,3 @@ fn test_managed_decimal_log2() {

assert_eq!(log2_hp_frac.to_string(), "8.823953218");
}

// #[test]
// fn test_managed_decimal_nth_root() {
// let fixed =
// ManagedDecimal::<StaticApi, NumDecimals>::from_raw_units(BigUint::from(567u64), 1usize);

// let fifth_root = fixed.clone().root(5f64, 100usize);
// let fifth_root_higher_prec = fixed.root(5f64, 100_000usize);

// assert_eq!(
// fifth_root,
// ManagedDecimal::<StaticApi, NumDecimals>::from_raw_units(BigUint::from(355u64), 100usize)
// );
// assert_eq!(
// fifth_root_higher_prec,
// ManagedDecimal::<StaticApi, NumDecimals>::from_raw_units(
// BigUint::from(355399u64),
// 100_000usize
// )
// );

// let const_fixed: ManagedDecimal<StaticApi, ConstDecimals<2>> =
// ManagedDecimal::<StaticApi, ConstDecimals<2>>::const_decimals_from_raw(BigUint::from(
// 876u64,
// ));

// let seventh_root_var = const_fixed.clone().root(7f64, 10_000usize);
// let seventh_root_const = const_fixed.root(7f64, ConstDecimals::<10_000>);

// assert_eq!(
// seventh_root_var,
// ManagedDecimal::<StaticApi, NumDecimals>::from_raw_units(
// BigUint::from(26324u64),
// 10_000usize
// )
// );
// assert_eq!(
// seventh_root_const,
// ManagedDecimal::<StaticApi, ConstDecimals::<10_000>>::const_decimals_from_raw(
// BigUint::from(26324u64)
// )
// );
// }

0 comments on commit 8eea61e

Please sign in to comment.