We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 256b2de commit 1018c74Copy full SHA for 1018c74
tests/by-util/test_date.rs
@@ -1,4 +1,4 @@
1
-// This file is part of the uutils coreutils package.
+/ This file is part of the uutils coreutils package.
2
//
3
// For the full copyright and license information, please view the LICENSE
4
// file that was distributed with this source code.
@@ -420,6 +420,21 @@ fn test_invalid_date_string() {
420
.stderr_contains("invalid date");
421
}
422
423
+#[test]
424
+fn test_date_one_digit_date() {
425
+ new_ucmd!()
426
+ .arg("-d")
427
+ .arg("2000-1-1")
428
+ .succeeds()
429
+ .stdout_contains("Sat Jan 1 00:00:00 2000");
430
+
431
432
433
+ .arg("2000-1-4")
434
435
+ .stdout_contains("Tue Jan 4 00:00:00 2000");
436
+}
437
438
#[test]
439
fn test_date_overflow() {
440
new_ucmd!()
0 commit comments