Skip to content
This repository has been archived by the owner on Aug 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #287 from yoshikazusawa/fix-minor-spelling-error
Browse files Browse the repository at this point in the history
Fix some minor misspelling
  • Loading branch information
exodist authored Jan 3, 2024
2 parents ffa47ac + 7e087c9 commit b03b5b0
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions lib/Test2/Tools/ClassicCompare.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -320,7 +320,7 @@ unlike the L<Test2::Tools::Compare> 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");
Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/Tools/Mock.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions t/acceptance/Workflow-Acceptance5.t
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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') };
Expand Down
2 changes: 1 addition & 1 deletion t/modules/Compare/Meta.t
Original file line number Diff line number Diff line change
Expand Up @@ -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, '<META CHECKS>', "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");
};
Expand Down
2 changes: 1 addition & 1 deletion t/modules/Mock.t
Original file line number Diff line number Diff line change
Expand Up @@ -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)");
Expand Down
2 changes: 1 addition & 1 deletion t/modules/Require.t
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion t/modules/Tools/ClassicCompare.t
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion t/modules/Tools/Defer.t
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ sub oops { die 'oops' }

my $line2 = __LINE__ + 1;
def oops => (1);
like( dies { do_def() }, <<EOT, "Exceptions in the test are propogated");
like( dies { do_def() }, <<EOT, "Exceptions in the test are propagated");
Exception: oops at $file line $line1.
--eval--
package main;
Expand Down

0 comments on commit b03b5b0

Please sign in to comment.