summaryrefslogtreecommitdiffstats
path: root/tests/expected/cal
Commit message (Collapse)AuthorAgeFilesLines
* tests: add cal --span testsKarel Zak2018-08-074-0/+740
| | | | | Addresses: https://github.com/karelzak/util-linux/issues/677 Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: rewrite cal(1) bigyear testKarel Zak2018-02-0226-218/+216Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update cal(1) testsKarel Zak2018-01-3080-2668/+1784Star
| | | | | | | | | | | | | * remove extra space after year output f066c107ce6b76b4b11b239b9ab77561d4e0b84e * don't print blank space behind last char on row 8315a2ff1507571ef14d77beac867b34a7d5e6da * print just specified number of month for -1, -3 and -n 2bcf8f7934649a5ee7925cdfdb12ca5abbf59b38 Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: use subtests for weeknum cal(1) testsKarel Zak2018-01-229-1485/+1436Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: use subtests for weekarg cal(1) testsKarel Zak2018-01-2218-147/+153
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* test: use subtests for jan1753 cal(1) testKarel Zak2018-01-223-19/+18Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: merge year cal(1) testsKarel Zak2018-01-2210-354/+352Star
| | | | | | | * merge tests * use subtests for cal(1) calls Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: merge 1m and 3m cal(1) testsKarel Zak2018-01-2220-148/+144Star
| | | | | | | * merge tests * use subtests for cal(1) calls Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: merge sep1752 cal(1) testsKarel Zak2018-01-2226-249/+248Star
| | | | | | | * merge tests * use subtests for cal(1) calls Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: use subtests for sep1752w testKarel Zak2018-01-2214-258/+257Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add cal(1) --week=40 1752Karel Zak2018-01-221-0/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: refresh cal(1) testKarel Zak2016-05-242-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: (cal) update US week numbersKarel Zak2015-08-316-610/+610
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cal: check biggest week number correctly when highlightingSami Kerola2015-08-311-0/+20
| | | | | | | This allows Sunday based week 54 be highlighted, and deny week 54 for Monday based weeks when year has only 52 weeks. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* cal: fix January 1753 week number printoutSami Kerola2015-05-181-0/+19
| | | | | | | | | | | | | | | Earlier output was clearly broken. $ cal -w 1 1753 January 1753 Su Mo Tu We Th Fr Sa 51 1 2 3 4 5 6 52 7 8 9 10 11 12 13 52 14 15 16 17 18 19 20 52 21 22 23 24 25 26 27 52 28 29 30 31 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* cal: fix signed integer overflow [AddressSanitizer]Sami Kerola2014-12-192-318/+318
| | | | | | | misc-utils/cal.c:811:16: runtime error: signed integer overflow: 2147483645 + 536870911 cannot be represented in type 'int' Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: fix trailing spaces in cal(1) stuffKarel Zak2014-02-173-389/+391
| | | | | Reported-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: cal(1) is year is limited to signed 32 bit valueSami Kerola2014-02-062-363/+349Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: cal: do not let --week=<num> to adjust requested monthSami Kerola2013-12-061-42/+42
| | | | | | | | | The previous commit made --week=<number> to have smaller weight value than a month supplied by user. The commit started to print the month that has more days at the week when a week is split to two months, and only one month output is requested. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: cal: take account week numbers when determing month lenghtSami Kerola2013-12-061-8/+4Star
| | | | | | | The month header does not need to wrap if month width with week number allows printing to single line. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* cal: added argument option for -w|--week to display that weekTommi Kyntola2013-10-221-0/+127
| | | | | | | | | Because many years have two sections of week 52 or 53, the week that this argument points to is the one that starts during that year (when available). The week number in argument is also highlighted in addition to possibly visible current/defined date highlighting. Signed-off-by: Tommi Kyntola <kynde@iki.fi>
* cal: various tests for week numbersTommi Kyntola2013-10-227-0/+2297
| | | | | | | | Current tests were replicated with week numbers and some additional tests for week numbering corner cases were added, too. Signed-off-by: Tommi Kyntola <kynde@iki.fi>
* cal: added two missing testsTommi Kyntola2013-10-222-0/+102
| | | | | | | Bigyear and Sep1752 lacked their were missing their last intended tests along with their expected outputs. Signed-off-by: Tommi Kyntola <kynde@iki.fi>
* tests: check cal works when year is far in futureSami Kerola2013-05-261-0/+206
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* cal: stop trimming whitespacesSami Kerola2013-05-265-336/+336
| | | | | | | | | | | Remove trailing spaces from output it is trivial cal | sed 's/ *$//' but padding them back is difficult. CC: Pádraig Brady <P@draigbrady.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: add cal day color corner casesSami Kerola2013-05-261-0/+55
| | | | | | | Check that the first, andn last, possible dates and strange Sep 1752 dates are highlighted correctly. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: add calendar reformation checkSami Kerola2013-05-261-0/+198
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: refresh cal(1) expected outputsKarel Zak2009-02-183-38/+38
| | | | | | | Unfortunately, the last rebase in the topic/blkid branch has removed tailing white spaces. Grrr... Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: create expected/$(component)/$(testname)Karel Zak2009-02-113-0/+251
Signed-off-by: Karel Zak <kzak@redhat.com>