Skip to content

Commit

Permalink
Modify test based on review
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonasher committed Aug 4, 2024
1 parent 70a6bfb commit 327c410
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,15 @@ mod tests {
assert_eq!(next_plan.time, 1.0);
assert_eq!(next_plan.data, 1);

plan_queue.add_plan(3.0, 3);
plan_queue.add_plan(1.5, 3);

let next_plan = plan_queue.get_next_plan().unwrap();
assert_eq!(next_plan.time, 2.0);
assert_eq!(next_plan.data, 2);
assert_eq!(next_plan.time, 1.5);
assert_eq!(next_plan.data, 3);

let next_plan = plan_queue.get_next_plan().unwrap();
assert_eq!(next_plan.time, 3.0);
assert_eq!(next_plan.data, 3);
assert_eq!(next_plan.time, 2.0);
assert_eq!(next_plan.data, 2);

assert!(plan_queue.get_next_plan().is_none());
}
Expand Down

0 comments on commit 327c410

Please sign in to comment.