[tz] Adding a "test" region?
howard.hinnant at gmail.com
Wed Jan 24 22:59:20 UTC 2018
On Jan 24, 2018, at 5:42 PM, Paul Eggert <eggert at cs.ucla.edu> wrote:
> It'd make sense to add a source file 'test.zi' to contain test cases. (I'd like new zic input files to end in '.zi'.) Some thought would have to go into the test cases, though. For example, how far away from zero could the UT offsets be? Even tzdata has some limits, which are not documented nor (I suspect) even known.
A separate input file is the way to do this. test.zi (or test_zones.zi) sounds good to me. Compilers can then go into test mode with nothing more than choosing which database files to read. And we need to explicitly state what we expect this input file to produce. Perhaps a test_zones.zo containing:
Initially: -00:00:52 standard LMT
1918-01-01 00:00:52Z +00:00:00 standard GMT
1920-09-01 00:00:00Z +00:20:00 daylight +0020
1920-12-30 23:40:00Z +00:00:00 standard GMT
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: Message signed with OpenPGP
More information about the tz