things like &new)
- added tests and docs for this
+ * Moose::Meta::TypeConstraint
+ - type constraints now stringify to their names.
+ - added test for this
+
* misc.
- added test for working with Module::Refresh
full fledges meta-objects
0.01 Wed. March 15, 2006
- - Moooooooooooooooooose!!!
\ No newline at end of file
+ - Moooooooooooooooooose!!!
use strict;
use warnings;
-use Test::More tests => 36;
+use Test::More tests => 37;
use Test::Exception;
use Scalar::Util ();
ok(Number(5), '... this is a Num');
ok(!defined(Number('Foo')), '... this is not a Num');
+{
+ my $number_tc = Moose::Util::TypeConstraints::find_type_constraint('Number');
+ is("$number_tc", 'Number', '... type constraint stringifies to name');
+}
ok(String('Foo'), '... this is a Str');
ok(!defined(String(5)), '... this is not a Str');