]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: date: check that options can follow the format string
authorCollin Funk <collin.funk1@gmail.com>
Sat, 14 Feb 2026 06:26:59 +0000 (22:26 -0800)
committerCollin Funk <collin.funk1@gmail.com>
Sat, 14 Feb 2026 06:26:59 +0000 (22:26 -0800)
* tests/date/date.pl (@Tests): Add the test case.

tests/date/date.pl

index 69d09d0fbbec1a0bdc729fa107497caecdf5c99e..a6d138d1b1774b9ab454e2273a6bf814a6a84801 100755 (executable)
@@ -240,6 +240,8 @@ my @Tests =
      ['tz-6', '+%Z', {OUT=>"UTC"}],
      ['tz-7', '+%Z', {OUT=>"JST"}, {ENV=>'TZ=JST-9'}],
 
+     ['arg-order', '+%Y-%m-%d -d 2026-02-13', {OUT=>"2026-02-13"}],
+
      ['ns-relative',
       '--iso=ns',
       "-d'1970-01-01 00:00:00.1234567 UTC +961062237.987654321 sec'",