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:
parent
8200d399e8
commit
12a43d6eb3
2 changed files with 10 additions and 3 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue