Skip to content

Commit

Permalink
Merge pull request #14 from bayashi/tiny-fix
Browse files Browse the repository at this point in the history
Tiny fix
  • Loading branch information
bayashi committed Feb 21, 2020
2 parents dce2ba2 + 024d793 commit 12ad56b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
4 changes: 4 additions & 0 deletions Changes
Expand Up @@ -2,6 +2,10 @@

https://github.com/bayashi/Test-Arrow/commits/master

## Tags

https://github.com/bayashi/Test-Arrow/tags

## Show the log of each version

Showing commit logs of tag `0.02` to `0.03` .
Expand Down
2 changes: 1 addition & 1 deletion README.pod
Expand Up @@ -5,7 +5,7 @@ This is Perl module B<Test::Arrow>.

=begin html

<a href="https://github.com/bayashi/Test-Arrow/blob/master/README.pod"><img src="https://img.shields.io/badge/Version-0.04-green?style=flat"></a> <a href="https://github.com/bayashi/Test-Arrow/blob/master/LICENSE"><img src="https://img.shields.io/badge/LICENSE-Artistic%202.0-GREEN.png"></a> <a href="https://github.com/bayashi/Test-Arrow/actions"><img src="https://github.com/bayashi/Test-Arrow/workflows/build/badge.svg?_t=1582295755&branch=master"/></a> <a href="https://coveralls.io/r/bayashi/Test-Arrow"><img src="https://coveralls.io/repos/bayashi/Test-Arrow/badge.png?_t=1582295755&branch=master"/></a>
<a href="https://github.com/bayashi/Test-Arrow/blob/master/README.pod"><img src="https://img.shields.io/badge/Version-0.04-green?style=flat"></a> <a href="https://github.com/bayashi/Test-Arrow/blob/master/LICENSE"><img src="https://img.shields.io/badge/LICENSE-Artistic%202.0-GREEN.png"></a> <a href="https://github.com/bayashi/Test-Arrow/actions"><img src="https://github.com/bayashi/Test-Arrow/workflows/master/badge.svg?_t=1582295755"/></a> <a href="https://coveralls.io/r/bayashi/Test-Arrow"><img src="https://coveralls.io/repos/bayashi/Test-Arrow/badge.png?_t=1582295755&branch=master"/></a>

=end html

Expand Down
16 changes: 10 additions & 6 deletions lib/Test/Arrow.pm
Expand Up @@ -41,13 +41,13 @@ sub _reset {
sub pass {
my $self = shift;

Test::Arrow->builder->ok(1, @_);
$KLASS->builder->ok(1, @_);
}

sub fail {
my $self = shift;

Test::Arrow->builder->ok(0, @_);
$KLASS->builder->ok(0, @_);
}

sub name {
Expand Down Expand Up @@ -318,7 +318,11 @@ Just pass or fail
=head3 ok
$arr->got($true);
$arr->got($true)->ok;
More easy,
$arr->ok($true);
=head3 is
Expand Down Expand Up @@ -352,7 +356,7 @@ C<like> matches $got value against the $expected regex.
=head2 UTILITIES
You can call below utilities even without an instance.
You can call below utilities methods even without an instance.
=head3 diag
Expand Down Expand Up @@ -380,7 +384,7 @@ If you call C<explain> method without args, then C<explain> method outputs objec
# }
ok 1 - foo
If you call C<explain> method with arg, then C<explain> method dumps it.
If you call C<explain> method with arg, then C<explain> method just dumps it.
$arr->expected('BAR')->got(uc 'bar')->explain({ baz => 123 })->is;
# {
Expand All @@ -402,7 +406,7 @@ B<Note> that you must never put C<done_testing> inside an C<END { ... }> block.
=begin html
<a href="https://github.com/bayashi/Test-Arrow/blob/master/README.pod"><img src="https://img.shields.io/badge/Version-0.04-green?style=flat"></a> <a href="https://github.com/bayashi/Test-Arrow/blob/master/LICENSE"><img src="https://img.shields.io/badge/LICENSE-Artistic%202.0-GREEN.png"></a> <a href="https://github.com/bayashi/Test-Arrow/actions"><img src="https://github.com/bayashi/Test-Arrow/workflows/build/badge.svg?_t=1582295755&branch=master"/></a> <a href="https://coveralls.io/r/bayashi/Test-Arrow"><img src="https://coveralls.io/repos/bayashi/Test-Arrow/badge.png?_t=1582295755&branch=master"/></a>
<a href="https://github.com/bayashi/Test-Arrow/blob/master/README.pod"><img src="https://img.shields.io/badge/Version-0.04-green?style=flat"></a> <a href="https://github.com/bayashi/Test-Arrow/blob/master/LICENSE"><img src="https://img.shields.io/badge/LICENSE-Artistic%202.0-GREEN.png"></a> <a href="https://github.com/bayashi/Test-Arrow/actions"><img src="https://github.com/bayashi/Test-Arrow/workflows/master/badge.svg?_t=1582295755"/></a> <a href="https://coveralls.io/r/bayashi/Test-Arrow"><img src="https://coveralls.io/repos/bayashi/Test-Arrow/badge.png?_t=1582295755&branch=master"/></a>
=end html
Expand Down

0 comments on commit 12ad56b

Please sign in to comment.