From: Karel Zak Date: Mon, 22 Jan 2018 13:26:39 +0000 (+0100) Subject: tests: add cal(1) --week=40 1752 X-Git-Tag: v2.32-rc1~69 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fbb94f5790e8c5175600b738569915a1ca79051e;p=thirdparty%2Futil-linux.git tests: add cal(1) --week=40 1752 Signed-off-by: Karel Zak --- diff --git a/tests/expected/cal/sep1752w b/tests/expected/cal/sep1752w index af4cec9f8f..a71c230f2e 100644 --- a/tests/expected/cal/sep1752w +++ b/tests/expected/cal/sep1752w @@ -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 + diff --git a/tests/ts/cal/sep1752w b/tests/ts/cal/sep1752w index d2d0d31664..10ef1a70e3 100755 --- a/tests/ts/cal/sep1752w +++ b/tests/ts/cal/sep1752w @@ -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