Template:Age in years and days/testcases

From Wikipedia, the free encyclopedia

Contents

[edit] Main template

Two fixed dates: &0000000000000001.0000001 year, &0000000000000029.00000029 days
Fixed date-today: &0000000000000003.0000003 years, &0000000000000131.000000131 days

[edit] Leap year test

No leap year (1900): &-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1.0000000 years, &0000000000000001.0000001 day
No leap year (1901): &-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1.0000000 years, &0000000000000001.0000001 day
Yes leap year (1904): &-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1-1.0000000 years, &0000000000000002.0000002 days

[edit] Single-plural test

Single year and day: &0000000000000001.0000001 year, &0000000000000001.0000001 day
Plural year and day: &0000000000000002.0000002 years, &0000000000000002.0000002 days
Single year and day over a leap day: &0000000000000001.0000001 year, &0000000000000001.0000001 day
Plural year and day over a leap day: &0000000000000002.0000002 years, &0000000000000002.0000002 days
Single year and day over new years: &0000000000000001.0000001 year, &0000000000000001.0000001 day
Plural year and day over new years: &0000000000000002.0000002 years, &0000000000000002.0000002 days

[edit] Sandbox template

Two fixed dates: 1 year, 29 days
Fixed date-today: 3 years, 131 days

[edit] Leap year test

No leap year (1900): 0 years, 1 day
No leap year (1901): 0 years, 1 day
Yes leap year (1904): 0 years, 2 days

[edit] Single-plural test

Single year and day: 1 year, 1 day
Plural year and day: 2 years, 2 days
Single year and day over a leap day: 1 year, 1 day
Plural year and day over a leap day: 2 years, 2 days
Single year and day over new years: 1 year, 1 day
Plural year and day over new years: 2 years, 2 days