aboutsummaryrefslogtreecommitdiff
path: root/src/output
diff options
context:
space:
mode:
authorDaniel <kingdread@gmx.de>2020-06-12 01:12:03 +0200
committerDaniel <kingdread@gmx.de>2020-06-12 01:12:03 +0200
commit9c7df815d2b19929fe5ca5295c8a5526bcfcee73 (patch)
tree99d609ef226c02e8afd14cdfdad338dbe565615b /src/output
parent8d1aece508b76497daa04a90c00967b543d1741b (diff)
downloadraidgrep-9c7df815d2b19929fe5ca5295c8a5526bcfcee73.tar.gz
raidgrep-9c7df815d2b19929fe5ca5295c8a5526bcfcee73.tar.bz2
raidgrep-9c7df815d2b19929fe5ca5295c8a5526bcfcee73.zip
fix tests for sorting
Diffstat (limited to 'src/output')
-rw-r--r--src/output/sorting.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/output/sorting.rs b/src/output/sorting.rs
index f46a95c..78f3538 100644
--- a/src/output/sorting.rs
+++ b/src/output/sorting.rs
@@ -130,6 +130,7 @@ mod tests {
use super::*;
use chrono::prelude::*;
+ use chrono::Duration;
use evtclib::Boss as B;
#[test]
@@ -163,10 +164,12 @@ mod tests {
fn test_sorting_cmp() {
use Component::*;
+ let duration = Duration::zero();
let logs: &[&LogResult] = &[
&LogResult {
log_file: "".into(),
time: Utc.ymd(2020, 4, 3).and_hms(12, 0, 0),
+ duration,
boss: Some(B::Dhuum),
players: vec![],
outcome: FightOutcome::Success,
@@ -175,6 +178,7 @@ mod tests {
&LogResult {
log_file: "".into(),
time: Utc.ymd(2020, 4, 3).and_hms(13, 0, 0),
+ duration,
boss: Some(B::Dhuum),
players: vec![],
outcome: FightOutcome::Success,
@@ -183,6 +187,7 @@ mod tests {
&LogResult {
log_file: "".into(),
time: Utc.ymd(2020, 4, 3).and_hms(11, 0, 0),
+ duration,
boss: Some(B::Dhuum),
players: vec![],
outcome: FightOutcome::Success,
@@ -191,6 +196,7 @@ mod tests {
&LogResult {
log_file: "".into(),
time: Utc.ymd(2020, 4, 3).and_hms(11, 0, 0),
+ duration,
boss: Some(B::Qadim),
players: vec![],
outcome: FightOutcome::Success,
@@ -199,6 +205,7 @@ mod tests {
&LogResult {
log_file: "".into(),
time: Utc.ymd(2020, 4, 3).and_hms(11, 0, 0),
+ duration,
boss: Some(B::Dhuum),
players: vec![],
outcome: FightOutcome::Success,