]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: date: test -d with only a minus sign master
authorCollin Funk <collin.funk1@gmail.com>
Wed, 17 Jun 2026 03:20:36 +0000 (20:20 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Wed, 17 Jun 2026 03:20:36 +0000 (20:20 -0700)
* tests/date/date.pl (@Tests): Add the test case.

tests/date/date.pl

index 95547e8b10ad2055ea29a1fcda0e3cd4f219b945..c685c3d3b8f208527f24c7429123888aff609376 100755 (executable)
@@ -423,6 +423,7 @@ my @Tests =
 
      # A bare sign is the empty relative offset: midnight today.
      ['bare-plus', "-d '+' '+%H:%M:%S'", {OUT=>"00:00:00"}],
 
      # A bare sign is the empty relative offset: midnight today.
      ['bare-plus', "-d '+' '+%H:%M:%S'", {OUT=>"00:00:00"}],
+     ['bare-minus', "-d '-' +%H:%M:%S", {OUT=>"00:00:00"}],
 
      # A trailing token after an \@epoch operand is an error.
      ['epoch-trailing', "-d '\@5 UTC' '+%T'",
 
      # A trailing token after an \@epoch operand is an error.
      ['epoch-trailing', "-d '\@5 UTC' '+%T'",