From: Shlomi Fish Date: Wed, 9 Dec 2009 10:40:24 +0000 (+0200) Subject: Fix more "a Int" -> "an Int". X-Git-Tag: 0.93_01~45 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b754c04ff8203c81a8fd1ea22cd1672825b68956;p=gitmo%2FMoose.git Fix more "a Int" -> "an Int". --- diff --git a/t/040_type_constraints/003_util_std_type_constraints.t b/t/040_type_constraints/003_util_std_type_constraints.t index 5f0e119..0af079a 100644 --- a/t/040_type_constraints/003_util_std_type_constraints.t +++ b/t/040_type_constraints/003_util_std_type_constraints.t @@ -135,20 +135,20 @@ ok(!defined Ref(undef), '... Ref rejects anything which is not a Ref') ok(defined Int(0), '... Int accepts anything which is an Int'); ok(defined Int(100), '... Int accepts anything which is an Int'); -ok(!defined Int(0.5), '... Int accepts anything which is not a Int'); -ok(!defined Int(100.01), '... Int accepts anything which is not a Int'); -ok(!defined Int(''), '... Int rejects anything which is not a Int'); -ok(!defined Int('Foo'), '... Int rejects anything which is not a Int'); -ok(!defined Int([]), '... Int rejects anything which is not a Int'); -ok(!defined Int({}), '... Int rejects anything which is not a Int'); -ok(!defined Int(sub {}), '... Int rejects anything which is not a Int'); -ok(!defined Int($SCALAR_REF), '... Int rejects anything which is not a Int'); -ok(!defined Int($GLOB), '... Int rejects anything which is not a Int'); -ok(!defined Int($GLOB_REF), '... Int rejects anything which is not a Int'); -ok(!defined Int($fh), '... Int rejects anything which is not a Int'); -ok(!defined Int(qr/../), '... Int rejects anything which is not a Int'); -ok(!defined Int(bless {}, 'Foo'), '... Int rejects anything which is not a Int'); -ok(!defined Int(undef), '... Int rejects anything which is not a Int'); +ok(!defined Int(0.5), '... Int accepts anything which is not an Int'); +ok(!defined Int(100.01), '... Int accepts anything which is not an Int'); +ok(!defined Int(''), '... Int rejects anything which is not an Int'); +ok(!defined Int('Foo'), '... Int rejects anything which is not an Int'); +ok(!defined Int([]), '... Int rejects anything which is not an Int'); +ok(!defined Int({}), '... Int rejects anything which is not an Int'); +ok(!defined Int(sub {}), '... Int rejects anything which is not an Int'); +ok(!defined Int($SCALAR_REF), '... Int rejects anything which is not an Int'); +ok(!defined Int($GLOB), '... Int rejects anything which is not an Int'); +ok(!defined Int($GLOB_REF), '... Int rejects anything which is not an Int'); +ok(!defined Int($fh), '... Int rejects anything which is not an Int'); +ok(!defined Int(qr/../), '... Int rejects anything which is not an Int'); +ok(!defined Int(bless {}, 'Foo'), '... Int rejects anything which is not an Int'); +ok(!defined Int(undef), '... Int rejects anything which is not an Int'); ok(defined Num(0), '... Num accepts anything which is an Num'); ok(defined Num(100), '... Num accepts anything which is an Num'); diff --git a/t/040_type_constraints/023_types_and_undef.t b/t/040_type_constraints/023_types_and_undef.t index ca36bdb..32921b8 100644 --- a/t/040_type_constraints/023_types_and_undef.t +++ b/t/040_type_constraints/023_types_and_undef.t @@ -42,28 +42,28 @@ Moose::Util::TypeConstraints->export_type_constraints_as_functions; ok( Undef(undef), '... undef is a Undef'); ok(!Defined(undef), '... undef is NOT a Defined'); -ok(!Int(undef), '... undef is NOT a Int'); +ok(!Int(undef), '... undef is NOT an Int'); ok(!Number(undef), '... undef is NOT a Number'); ok(!Str(undef), '... undef is NOT a Str'); ok(!String(undef), '... undef is NOT a String'); ok(!Undef(5), '... 5 is a NOT a Undef'); ok(Defined(5), '... 5 is a Defined'); -ok(Int(5), '... 5 is a Int'); +ok(Int(5), '... 5 is an Int'); ok(Number(5), '... 5 is a Number'); ok(Str(5), '... 5 is a Str'); ok(!String(5), '... 5 is NOT a String'); ok(!Undef(0.5), '... 0.5 is a NOT a Undef'); ok(Defined(0.5), '... 0.5 is a Defined'); -ok(!Int(0.5), '... 0.5 is NOT a Int'); +ok(!Int(0.5), '... 0.5 is NOT an Int'); ok(Number(0.5), '... 0.5 is a Number'); ok(Str(0.5), '... 0.5 is a Str'); ok(!String(0.5), '... 0.5 is NOT a String'); ok(!Undef('Foo'), '... "Foo" is NOT a Undef'); ok(Defined('Foo'), '... "Foo" is a Defined'); -ok(!Int('Foo'), '... "Foo" is NOT a Int'); +ok(!Int('Foo'), '... "Foo" is NOT an Int'); ok(!Number('Foo'), '... "Foo" is NOT a Number'); ok(Str('Foo'), '... "Foo" is a Str'); ok(String('Foo'), '... "Foo" is a String');