// import modul energi potensial dan rstest
use phyrust::config::{Float, EPSILON};
use phyrust::core::potential_energy;
use rstest::rstest;

#[rstest]
#[case(10.0, 1.0, 98.0)] // pada kasus normal

fn test_potential_scenarios(#[case] mass: Float, #[case] space: Float, #[case] expected: Float) {
    let result: Float = potential_energy::potential_energy_formula(mass, space);
    assert!(
        (result - expected).abs() < EPSILON,
        "failed at: mass={}, space={}, result={}, expect={}",
        mass,
        space,
        result,
        expected
    );
}
