Browse Source

Test a redundant pause entry

master
Andreas Linz 2 years ago
parent
commit
cd123e098f
No known key found for this signature in database GPG Key ID: 8DEF5099A0822620
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      src/main.rs

+ 13
- 0
src/main.rs View File

@ -322,6 +322,19 @@ mod tests {
],
},
);
ts.insert(
"one-redundant-pause-entry",
TestCase {
expected: Some(Duration::hours(8) + Duration::minutes(15)),
data: vec![
new_record("2018-09-11T09:00:00+00:00", State::Work),
new_record("2018-09-11T18:00:00+00:00", State::Work),
new_record("2018-09-11T12:00:00+00:00", State::Pause),
new_record("2018-09-11T12:45:00+00:00", State::Pause),
new_record("2018-09-11T12:50:00+00:00", State::Pause),
],
},
);
ts.insert(
"only-beginning",
TestCase {

Loading…
Cancel
Save