Skip to content

Commit

Permalink
Merge 104b93a into 39b106b
Browse files Browse the repository at this point in the history
  • Loading branch information
bayashi committed Feb 27, 2020
2 parents 39b106b + 104b93a commit 288eb71
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
12 changes: 9 additions & 3 deletions lib/Test/Arrow.pm
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ sub expected {
$self;
}

sub expect { shift->expected(@_) }

sub got {
my ($self, $value) = @_;

Expand Down Expand Up @@ -462,9 +460,14 @@ sub warnings {

{
no warnings 'once';
*warn_ok = *warnings_ok;
*expect = *expected;

*warn_ok = *warnings_ok;
*warning_ok = *warnings_ok;

*warning = *warnings;

*done = *done_testing;
}

1;
Expand Down Expand Up @@ -744,6 +747,9 @@ Declare of done testing.
B<Note> that you must never put C<done_testing> inside an C<END { ... }> block.
=head3 done
Alias of done_testing
=head2 CONSTANTS
Expand Down
13 changes: 8 additions & 5 deletions t/00_compile.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
use strict;
use Test::More tests => 1;
eval {
require Test::Arrow;
Test::Arrow->import;
};

BEGIN {
use_ok 'Test::Arrow';
}
Test::Arrow->new->ok(!$@)
or Test::Arrow->diag($@);

Test::Arrow->done;

0 comments on commit 288eb71

Please sign in to comment.