Browse Source

test: add time test

main
fdai7375 2 years ago
parent
commit
7fe5de5614
  1. 10
      src/builtins/time.rs

10
src/builtins/time.rs

@ -24,3 +24,13 @@ fn format_time(time: DateTime<Local>, 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(()))
}
}
Loading…
Cancel
Save