diff --git a/src/builtins/time.rs b/src/builtins/time.rs index 0e79262..a831e99 100644 --- a/src/builtins/time.rs +++ b/src/builtins/time.rs @@ -24,3 +24,13 @@ fn format_time(time: DateTime, formatting: &str) -> String { _ => time.format("%T").to_string(), } } + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_time() { + assert_eq!(Time.execute(&mut BuiltinConfig::new(), vec![]), Ok(())) + } +}