1
0
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:
2020-11-08 23:10:33 +08:00
parent 755dc5619d
commit 6e821a4cd9
4 changed files with 30 additions and 27 deletions

View File

@@ -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(""));