TITLE

make-regression - Generate a regression test

SYNOPSIS

make-regression
make-regression -output xt/author/regression.new
make-regression -help
make-regression -version

OPTIONS

-help

This option displays the documentation for this script. The script then exits.

-idempotent

If this Boolean option is asserted and the output file exists, it is not overwritten. This option is ignored if the output is -.

The default is -noidempotent.

-output

-output xt/author/regression.t

This option specifies the output file. A single dash (-) is understood as specifying standard output.

The default is xt/author/regression.t.

-version

This option displays the version of this script. The script then exits.

DETAILS

This Perl script generates a regression test to detect any change in behaviour of the Date::Tolkien::Shire module. This test consists of calling each method for each day in the intervals 1999-01-01 to 2002-12-31 inclusive, and 2035-01-01 to 2038-12-31 inclusive, and verifying that all calls produce the same results as when the regression test was generated.

The test is written to the file specified by the -output argument.

Note that unless -idempotent is specified and the output file exists, the PAR module is required.

AUTHOR

Thomas R. Wyant, III harryfmudd at comcast dot net

COPYRIGHT AND LICENSE

Copyright (C) 2017-2022, 2025-2026 by Thomas R. Wyant, III

This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full text of the licenses in the files LICENSE-Artistic and LICENSE-GPL.

This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.