diff --git a/lib/Test2/Tools/ClassicCompare.pm b/lib/Test2/Tools/ClassicCompare.pm index 8a64ad33..42bd6b91 100644 --- a/lib/Test2/Tools/ClassicCompare.pm +++ b/lib/Test2/Tools/ClassicCompare.pm @@ -165,7 +165,7 @@ sub is_deeply($$;$@) { join "\n", "!!! NOTICE OF BEHAVIOR CHANGE !!!", "This test uses at least 1 $type check without using end() or etc().", - "The exising behavior is to default to etc() when inside is_deeply().", + "The existing behavior is to default to etc() when inside is_deeply().", "The new behavior is to default to end().", "This test will soon start to fail with the following diagnostics:", $delta->diag->as_string, @@ -320,7 +320,7 @@ unlike the L plugin which has modified them. use Test2::Tools::ClassicCompare qw/is is_deeply isnt like unlike cmp_ok/; is($got, $expect, "These are the same when stringified"); - isnt($got, $unexpect, "These are not the same when stringified"); + isnt($got, $unexpected, "These are not the same when stringified"); like($got, qr/.../, "'got' matches the pattern"); unlike($got, qr/.../, "'got' does not match the pattern"); diff --git a/lib/Test2/Tools/Mock.pm b/lib/Test2/Tools/Mock.pm index 81b59a3e..b24c61fd 100644 --- a/lib/Test2/Tools/Mock.pm +++ b/lib/Test2/Tools/Mock.pm @@ -35,7 +35,7 @@ sub add_handler { croak "Must specify a package for the mock handler" unless $for; - croak "Handlers must be code referneces (got: $code)" + croak "Handlers must be code references (got: $code)" unless $code && ref($code) eq 'CODE'; push @{$HANDLERS{$for}} => $code; diff --git a/t/acceptance/Workflow-Acceptance5.t b/t/acceptance/Workflow-Acceptance5.t index cbcb9695..73e7ba13 100644 --- a/t/acceptance/Workflow-Acceptance5.t +++ b/t/acceptance/Workflow-Acceptance5.t @@ -15,7 +15,7 @@ spec_defaults case => (iso => 1, async => 1); spec_defaults tests => (iso => 1, async => 1); tests outside => sub { - isnt(get_ids(), $orig, "In child (lexial)"); + isnt(get_ids(), $orig, "In child (lexical)"); }; describe wrapper => sub { @@ -24,7 +24,7 @@ describe wrapper => sub { }; case 'bar', {iso => 0, async => 0} => sub { - is(get_ids(), $orig, "In orig (overriden)") + is(get_ids(), $orig, "In orig (overridden)") }; tests a => sub { ok(1, 'stub') }; diff --git a/t/modules/Compare/Meta.t b/t/modules/Compare/Meta.t index 68050b1c..aa04b036 100644 --- a/t/modules/Compare/Meta.t +++ b/t/modules/Compare/Meta.t @@ -7,7 +7,7 @@ subtest simple => sub { isa_ok($one, $CLASS, 'Test2::Compare::Base'); is($one->items, [], "generated an empty items array"); is($one->name, '', "sane name"); - is($one->verify(exists => 0), 0, "Does not verify for non-existant values"); + is($one->verify(exists => 0), 0, "Does not verify for non-existent values"); is($one->verify(exists => 1), 1, "always verifies for existing values"); ok(defined $CLASS->new(items => []), "Can provide items"); }; diff --git a/t/modules/Mock.t b/t/modules/Mock.t index 1eeeba6d..6ef099e8 100644 --- a/t/modules/Mock.t +++ b/t/modules/Mock.t @@ -553,7 +553,7 @@ subtest 'override and orig' => sub { EOT my $check_initial = sub { - is(Fake14->$_, 'old', "$_ is not overriden") for qw/new foo bar baz DATA reader writer rsub nsub/; + is(Fake14->$_, 'old', "$_ is not overridden") for qw/new foo bar baz DATA reader writer rsub nsub/; ok(eval <<' EOT', "Ran glob checks") || diag "Error: $@"; is($Fake14::UHG, 'old', 'old package scalar (UHG)'); is($Fake14::DATA, 'old', "Old package scalar (DATA)"); diff --git a/t/modules/Require.t b/t/modules/Require.t index dc27b086..7404c959 100644 --- a/t/modules/Require.t +++ b/t/modules/Require.t @@ -6,7 +6,7 @@ pass "Loaded Test2::Require"; like( dies { Test2::Require->skip() }, qr/Class 'Test2::Require' needs to implement 'skip\(\)'/, - "skip must be overriden" + "skip must be overridden" ); my $x; diff --git a/t/modules/Tools/ClassicCompare.t b/t/modules/Tools/ClassicCompare.t index 4451112f..e221a818 100644 --- a/t/modules/Tools/ClassicCompare.t +++ b/t/modules/Tools/ClassicCompare.t @@ -79,7 +79,7 @@ like($foo, qr/xxx/, "overload"); my $thing = bless {}, 'Foo::Bar'; -# Test cmp_ok in a seperate package so we have access to the better tools. +# Test cmp_ok in a separate package so we have access to the better tools. package main2; use Test2::Bundle::Extended; diff --git a/t/modules/Tools/Defer.t b/t/modules/Tools/Defer.t index 153dfb79..282b7892 100644 --- a/t/modules/Tools/Defer.t +++ b/t/modules/Tools/Defer.t @@ -119,7 +119,7 @@ sub oops { die 'oops' } my $line2 = __LINE__ + 1; def oops => (1); -like( dies { do_def() }, <