use litime::minute::get_minute;
#[test]
fn test_get_minute_sfw() {
for hour in 1..24 {
for minute in 1..60 {
let timestamp = format!("{:0width$}:{:0width$}", hour, minute, width = 2);
for _ in 1..100 {
get_minute(×tamp, true).expect(×tamp);
}
}
}
}
#[test]
fn test_get_minute_nsfw() {
for hour in 1..24 {
for minute in 1..60 {
let timestamp = format!("{:0width$}:{:0width$}", hour, minute, width = 2);
for _ in 1..100 {
get_minute(×tamp, false).expect(×tamp);
}
}
}
}