Jump to content

Module talk:Last month/testcases

Page contents not supported in other languages.
Add topic
From Wikisource

All 9 tests passed.

test_n1
Text Expected Actual
YesY {{#invoke:Last month | last_month |year=2021 | month = 05}} 2021-04 2021-04
YesY {{#invoke:Last month | last_month |year=2021 | month = 01}} 2020-12 2020-12
YesY {{#invoke:Last month | last_month |year=2021 | month = 05 | n = 4}} 2021-01 2021-01
YesY {{#invoke:Last month | last_month |year=2021 | month = 05 | n = 0}} 2021-05 2021-05
YesY {{#invoke:Last month | last_month |year=2021 | month = 05 | n = -1}} 2021-06 2021-06
YesY {{#invoke:Last month | last_month |year=2021 | month = 12 | n = -1}} 2022-01 2022-01
YesY {{#invoke:Last month | last_month |year=2021 | month = 5 | format = %Y}} 2021 2021
YesY {{#invoke:Last month | last_month |year=2021 | month = 5 | format = %m}} 04 04
YesY {{#invoke:Last month | last_month |year=2021 | month = 5 | format = %B}} April April

Start a discussion about Module:Last month/testcases

Start a discussion