[Moose-commits] r7702 - Moose/trunk/t/040_type_constraints

autarch at code2.0beta.co.uk autarch at code2.0beta.co.uk
Sat Feb 14 23:55:52 GMT 2009


Author: autarch
Date: 2009-02-14 15:55:52 -0800 (Sat, 14 Feb 2009)
New Revision: 7702

Modified:
   Moose/trunk/t/040_type_constraints/003_util_std_type_constraints.t
Log:
Fix some mixed up test descriptions


Modified: Moose/trunk/t/040_type_constraints/003_util_std_type_constraints.t
===================================================================
--- Moose/trunk/t/040_type_constraints/003_util_std_type_constraints.t	2009-02-14 23:54:15 UTC (rev 7701)
+++ Moose/trunk/t/040_type_constraints/003_util_std_type_constraints.t	2009-02-14 23:55:52 UTC (rev 7702)
@@ -299,9 +299,9 @@
 ok(!defined Role($GLOB_REF),            '... Role rejects anything which is not a Role');
 ok(!defined Role($fh),                  '... Role rejects anything which is not a Role');
 ok(!defined Role(qr/../),               '... Role rejects anything which is not a Role');
-ok(!defined Role(bless {}, 'Foo'),      '... Role accepts anything which is not a Role');
-ok(defined Role(bless {}, 'My::Role'),  '... Role accepts anything which is not a Role');
-ok(!defined Role(undef),                 '... Role accepts anything which is not a Role');
+ok(!defined Role(bless {}, 'Foo'),      '... Role accepts anything which is a Role');
+ok(defined Role(bless {}, 'My::Role'),  '... Role accepts anything which is a Role');
+ok(!defined Role(undef),                 '... Role accepts anything which is a Role');
 
 ok(!defined ClassName(0),               '... ClassName rejects anything which is not a ClassName');
 ok(!defined ClassName(100),             '... ClassName rejects anything which is not a ClassName');
@@ -349,9 +349,9 @@
 ok(!defined RoleName(qr/../),          '... Rolename rejects anything which is not a RoleName');
 ok(!defined RoleName(bless {}, 'Foo'), '... Rolename rejects anything which is not a RoleName');
 ok(!defined RoleName(undef),           '... Rolename rejects anything which is not a RoleName');
-ok(!defined RoleName('UNIVERSAL'),      '... RoleName accepts anything which is a RoleName');
-ok(!defined RoleName('Quux::Wibble'),      '... RoleName accepts anything which is a RoleName');
-ok(!defined RoleName('Moose::Meta::TypeConstraint'), '... RoleName accepts anything which is a RoleName');
+ok(!defined RoleName('UNIVERSAL'),     '... Rolename rejects anything which is not a RoleName');
+ok(!defined RoleName('Quux::Wibble'),  '... Rolename rejects anything which is not a RoleName');
+ok(!defined RoleName('Moose::Meta::TypeConstraint'),  '... RoleName accepts anything which is a RoleName');
 ok(defined RoleName('Quux::Wibble::Role'),      '... RoleName accepts anything which is a RoleName');
 
 close($fh) || die "Could not close the filehandle $0 for test";




More information about the Moose-commits mailing list