gener-test-0
NAME
gener-test-0.1.0.raku -- Generation of test data
SYNOPSIS
raku gener-test-0.1.0.raku > /tmp/test-data
copy-paste from /tmp/test-data to the tests scripts.
DESCRIPTION
This program uses the various Date::Calendar::xxx classes,
version 0.0.x and API 0, to generate test data for version 0.1.0 and
API 1. After the test data are generated, check them with another
source (the calendar functions in Emacs, some websites, some Android
apps). Please remember that the other sources do not care about sunset
(and sunrise for the civil Maya and Aztec calendars) and that you will
have to mentally shift the results before the comparison.
And after the data are checked, copy-paste the lines into the test
scripts xt/09-conv-old.rakutest and xt/10-conv-new.rakutest.
In xt/09-conv-old.rakutest, fill the @data-maya array with the
lines listing Maya and Aztec dates and fill the @data-others array
with the lines listing other dates. Then cut the lines listing 'gr'
dates and paste them into the @data-greg array and add the
Gregorian date with the 'YYYY-MM-AA' format at the end of each array
line. Lastly, cut (and do not paste) the lines for the Persian
calendar and its astronomical variant (which cannot be simultaneously
version 0.0.2 and version 0.1.0).
In xt/10-conv-new.rakutest, fill the @data-maya array with the
lines listing Maya and Aztec dates and fill the @data array with
the lines listing other dates.
Remember that you need to erase the first comma in each chunk of copied-pasted code.
Test data are generated only for Date::Calendar::Persian, not for
the astronomical variant.
All computed dates are daylight dates. So it does not matter which version and API are such and such classes. Daylight dates gives exactly the same results with version 0.1.0 / API 1 as with version 0.0.x / API 0.
AUTHOR
Jean Forget <J2N-FORGET at orange dot fr>
COPYRIGHT AND LICENSE
Copyright (c) 2024 Jean Forget, all rights reserved
This program is free software; you can redistribute it and/or modify it under the Artistic License 2.0.