Skip to content

Commit

Permalink
Lower fuel consumption threshold from 10% to 2%
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffcharles committed Nov 25, 2024
1 parent f955893 commit 66727ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/cli/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ fn run_fn(r: &mut Runner, func: &str, stdin: &[u8]) -> (Vec<u8>, String, u64) {
fn assert_fuel_consumed_within_threshold(target_fuel: u64, fuel_consumed: u64) {
let target_fuel = target_fuel as f64;
let fuel_consumed = fuel_consumed as f64;
let threshold = 10.0;
let threshold = 2.0;
let percentage_difference = ((fuel_consumed - target_fuel) / target_fuel).abs() * 100.0;

assert!(
Expand Down

0 comments on commit 66727ce

Please sign in to comment.