mirror of
https://github.com/jht5945/rust_util.git
synced 2025-12-28 08:00:04 +08:00
chore: coding style
This commit is contained in:
@@ -25,6 +25,16 @@ pub fn parse_duration(t: &str) -> Option<Duration> {
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_get_current_secs() {
|
||||
assert!(get_current_secs() != 0);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_get_current_millis() {
|
||||
assert!(get_current_millis() != 0);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_parse_duration() {
|
||||
assert_eq!(None, parse_duration(""));
|
||||
|
||||
Reference in New Issue
Block a user