Skip to content

Commit

Permalink
Improve SYNOPSIS of README
Browse files Browse the repository at this point in the history
  • Loading branch information
bayashi committed Apr 24, 2020
1 parent 814a071 commit ab853e2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.pod
Expand Up @@ -35,6 +35,18 @@ This is Perl module B<Test::Arrow>. It's Object-Oriented testing library.
$arr->warnings(sub { warn 'Bar' })->catch(qr/^Ba/);
$arr->throw(sub { die 'Baz' })->catch(qr/^Ba/);

done;

The function C<t> is exported as a shortcut for constructer. It initializes an instance for each.

use Test::Arrow;

t->got(1)->ok;

t->expect(uc 'foo')->to_be('FOO');

done;


=head1 INSTALLATION

Expand Down

0 comments on commit ab853e2

Please sign in to comment.