summaryrefslogtreecommitdiffstats
path: root/tests/expected/cal
diff options
context:
space:
mode:
authorSami Kerola2015-08-27 15:21:29 +0200
committerKarel Zak2015-08-31 10:15:12 +0200
commit03f8bc1f327b21d4a5311733f175ceabda5f3f2d (patch)
treed4235c77dbf21b5de3fa3f3797dbabec50b2b814 /tests/expected/cal
parentcal: replace magic constants with symbolical values (diff)
downloadkernel-qcow2-util-linux-03f8bc1f327b21d4a5311733f175ceabda5f3f2d.tar.gz
kernel-qcow2-util-linux-03f8bc1f327b21d4a5311733f175ceabda5f3f2d.tar.xz
kernel-qcow2-util-linux-03f8bc1f327b21d4a5311733f175ceabda5f3f2d.zip
cal: check biggest week number correctly when highlighting
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>
Diffstat (limited to 'tests/expected/cal')
-rw-r--r--tests/expected/cal/weekarg20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/expected/cal/weekarg b/tests/expected/cal/weekarg
index 75e2efbc5..610ad9b16 100644
--- a/tests/expected/cal/weekarg
+++ b/tests/expected/cal/weekarg
@@ -125,3 +125,23 @@ Julian - Monday-based, week 40 with colors, 3 month
38 259 260 261 262 263 264 265 43 294 295 296 297 298 299 300 47 322 323 324 325 326 327 328
39 266 267 268 269 270 271 272 44 301 302 303 304 48 329 330 331 332 333 334
40 273
+Gregorian - Sunday-based, week 54 with colors, 3 month
+ November 2000 December 2000 January 2001
+ Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa
+45 1 2 3 4 49 1 2 1 1 2 3 4 5 6
+46 5 6 7 8 9 10 11 50 3 4 5 6 7 8 9 2 7 8 9 10 11 12 13
+47 12 13 14 15 16 17 18 51 10 11 12 13 14 15 16 3 14 15 16 17 18 19 20
+48 19 20 21 22 23 24 25 52 17 18 19 20 21 22 23 4 21 22 23 24 25 26 27
+49 26 27 28 29 30 53 24 25 26 27 28 29 30 5 28 29 30 31
+ 54 31
+Gregorian - Monday-based, week 53 with colors, 3 month
+cal: illegal week value: year 2000 doesn't have week 53
+Gregorian - Monday-based, week 52 with colors, 3 month
+ November 2000 December 2000 January 2001
+ Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su
+44 1 2 3 4 5 48 1 2 3 1 1 2 3 4 5 6 7
+45 6 7 8 9 10 11 12 49 4 5 6 7 8 9 10 2 8 9 10 11 12 13 14
+46 13 14 15 16 17 18 19 50 11 12 13 14 15 16 17 3 15 16 17 18 19 20 21
+47 20 21 22 23 24 25 26 51 18 19 20 21 22 23 24 4 22 23 24 25 26 27 28
+48 27 28 29 30 52 25 26 27 28 29 30 31 5 29 30 31
+