]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: add cal(1) --week=40 1752
authorKarel Zak <kzak@redhat.com>
Mon, 22 Jan 2018 13:26:39 +0000 (14:26 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 22 Jan 2018 13:26:39 +0000 (14:26 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/cal/sep1752w
tests/ts/cal/sep1752w

index af4cec9f8ff5dbc47cc0f7dc4b45b992e34cccff..a71c230f2edf27f92341fcce5c87201ef5f332c5 100644 (file)
@@ -247,3 +247,12 @@ Julian - Sunday-based year with week numbers
 47 331 332 333 334 335           51 359 360 361 362 363 364 365   
                                  52 366                           
 
+Gregorian - address by week number
+     September 1752    
+   Su Mo Tu We Th Fr Sa
+36                 1  2 
+37  3  4  5  6  7  8  9 
+38 10 11 12 13 14 15 16 
+39 17 18 19 20 21 22 23 
+40 24 25 26 27 28 29 30 
+                        
index d2d0d316649a4fcc129e213a430619b341ff2cde..10ef1a70e347d145e74706fce9d37d619ad6ba65 100755 (executable)
@@ -95,4 +95,10 @@ if [ "$USETERM" == "yes" ]; then
 fi
 $TS_CMD_CAL -1sjw $MYYEAR >> $TS_OUTPUT
 
+ts_log "Gregorian - address by week number"
+if [ "$USETERM" == "yes" ]; then
+       $TS_CMD_CAL --week=40 --iso $MYYEAR
+fi
+$TS_CMD_CAL --week=40 --iso $MYYEAR >> $TS_OUTPUT
+
 ts_finalize