fix: Add test attribute to cmd_duration tests (#134)

This commit is contained in:
Kevin Song 2019-08-10 12:47:34 -07:00 committed by Matan Kushner
parent f4bb72045f
commit 994a865d4d
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,3 @@
use crate::config::Config;
use ansi_term::Color; use ansi_term::Color;
use super::{Context, Module}; use super::{Context, Module};
@ -77,12 +76,15 @@ mod tests {
fn test_10s() { fn test_10s() {
assert_eq!(render_time(10 as u64), "10s") assert_eq!(render_time(10 as u64), "10s")
} }
#[test]
fn test_90s() { fn test_90s() {
assert_eq!(render_time(90 as u64), "1m30s") assert_eq!(render_time(90 as u64), "1m30s")
} }
#[test]
fn test_10110s() { fn test_10110s() {
assert_eq!(render_time(10110 as u64), "1h48m30s") assert_eq!(render_time(10110 as u64), "2h48m30s")
} }
#[test]
fn test_1d() { fn test_1d() {
assert_eq!(render_time(86400 as u64), "1d") assert_eq!(render_time(86400 as u64), "1d")
} }