[Toybox] RFC: another stab at date.c.

Rob Landley rob at landley.net
Tue Mar 28 17:46:06 PDT 2017


On 03/28/2017 03:58 PM, enh wrote:
> that will fail at least one of the tests (Feb 29th in a non-leap
> year), but i don't think i really care about that. the case i care
> about is not accepting ridiculous input. the chances of any given
> seconds-since-1970 passing all these tests seems basically zero, so
> that should be fine.

Oh it'll fail "April 31" in any year, it's a very simple test. But it's
a test that shouldn't get screwed up by normalization corner cases,
which is the problem I keep hitting when I test stuff.

(Properly implementing date.test is pending finishing mkroot and getting
a new qemu test environment set up.)

Rob


More information about the Toybox mailing list