Improve unit tests

This commit is contained in:
Rico Riedel 2022-11-22 21:49:07 +01:00
parent 3fcab89c51
commit 1eddc2e3a2
No known key found for this signature in database
GPG Key ID: 75AC868575DE7B18

View File

@ -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]