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/12-conv-old.rakutest and xt/13-conv-new.rakutest.

In xt/12-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.

In xt/13-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::FrenchRevolutionary, not for the arithmetic and astronomical variants.

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.

If you compare the various repositories, you will find that this gener-test-0.1.0.raku program is poorly written compared to the homonymous programs in the other repositories. This is because this is the first fully functional version. The other are later versions, with further refinements. I consider that including this refinements into a fully functional program is not worthwhile.

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.

Date::Calendar::FrenchRevolutionary v0.1.0

Conversions from / to the French Revolutionary calendar

Authors

  • Jean Forget

License

Artistic-2.0

Dependencies

Date::Calendar::Strftime

Test Dependencies

Provides

  • Date::Calendar::FrenchRevolutionary
  • Date::Calendar::FrenchRevolutionary::Arithmetic
  • Date::Calendar::FrenchRevolutionary::Astronomical
  • Date::Calendar::FrenchRevolutionary::Common
  • Date::Calendar::FrenchRevolutionary::Names

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite — the markup and publishing tools behind this site.