NAME

t/02_datetimex.t - Check that we can properly coerce a string.

DESCRIPTION

Run some tests to make sure the the Duration and DateTime types continue to work exactly as from the MooseX::Types::DateTime class, as well as perform the correct string to object coercions.

TESTS

This module defines the following tests.

Test Class

Create a Moose class that is using the MooseX::Types::DateTimeX types.

ParseDateTime Capabilities

parse some dates and make sure the system can actually find something.

relative dates

Stuff like "yesterday". We can make sure they returned something but we have no way to make sure the values are really correct. Manual testing suggests they work well enough, given the inherent ambiguity we are dealing with.

check inherited constraints

Just a few tests to make sure the object, hash, etc coercions and type checks still work.

check duration

make sure the Duration type constraint works as expected

AUTHOR

John Napiorkowski <jjn1056 at yahoo.com>

COPYRIGHT

Copyright (c) 2008 John Napiorkowski. All rights reserved
This program is free software; you can redistribute
it and/or modify it under the same terms as Perl itself.