1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +00:00

date: fix format literal for nanoseconds

This commit is contained in:
Jan Scheer 2021-05-12 10:21:24 +02:00
parent 8200d399e8
commit 12a43d6eb3
2 changed files with 10 additions and 3 deletions

View file

@ -121,6 +121,12 @@ fn test_date_format_without_plus() {
.code_is(1);
}
#[test]
fn test_date_format_literal() {
new_ucmd!().arg("+%%s").succeeds().stdout_is("%s\n");
new_ucmd!().arg("+%%N").succeeds().stdout_is("%N\n");
}
#[test]
#[cfg(all(unix, not(target_os = "macos")))]
fn test_date_set_valid() {