mirror of
https://github.com/ricoriedel/wipe.git
synced 2024-11-05 07:36:41 +00:00
Improve unit tests
This commit is contained in:
parent
3fcab89c51
commit
1eddc2e3a2
@ -297,7 +297,7 @@ mod test {
|
|||||||
duration: 3500,
|
duration: 3500,
|
||||||
..Args::default()
|
..Args::default()
|
||||||
};
|
};
|
||||||
assert_eq!(Duration::from_secs_f32(3.5), args.duration());
|
assert_eq!(Duration::from_millis(3500), args.duration());
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@ -306,7 +306,7 @@ mod test {
|
|||||||
fps: 20,
|
fps: 20,
|
||||||
..Args::default()
|
..Args::default()
|
||||||
};
|
};
|
||||||
assert_eq!(Duration::from_secs_f32(0.05), args.delay());
|
assert_eq!(Duration::from_millis(50), args.delay());
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Loading…
Reference in New Issue
Block a user