Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tao-stones committed Sep 21, 2023
1 parent 4723541 commit 85d985d
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions programs/bpf_loader/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4042,10 +4042,7 @@ mod tests {
assert_eq!(0, calculate_heap_cost(33 * 1024, heap_cost, false));

// assert exact 64K heap should cost 1 * heap_cost
assert_eq!(
heap_cost,
calculate_heap_cost(64 * 1024, heap_cost, false)
);
assert_eq!(heap_cost, calculate_heap_cost(64 * 1024, heap_cost, false));
}

// when `enable_heap_size_round_up` is enabled:
Expand All @@ -4057,16 +4054,10 @@ mod tests {
assert_eq!(0, calculate_heap_cost(32 * 1024, heap_cost, true));

// assert slightly more than 32K heap should cost 1 * heap_cost
assert_eq!(
heap_cost,
calculate_heap_cost(33 * 1024, heap_cost, true)
);
assert_eq!(heap_cost, calculate_heap_cost(33 * 1024, heap_cost, true));

// assert exact 64K heap should cost 1 * heap_cost
assert_eq!(
heap_cost,
calculate_heap_cost(64 * 1024, heap_cost, true)
);
assert_eq!(heap_cost, calculate_heap_cost(64 * 1024, heap_cost, true));
}
}

Expand Down

0 comments on commit 85d985d

Please sign in to comment.