The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

This is Perl module Test::Arrow. It's Object-Oriented testing library.

SYNOPSIS

    use Test::Arrow;

    my $arr = Test::Arrow->new;

    $arr->got(1)->ok;

    $arr->expect(uc 'foo')->to_be('FOO');

    $arr->name('Test Name')
        ->expected('FOO')
        ->got(uc 'foo')
        ->is;

    $arr->expected(6)
        ->got(2 * 3)
        ->is_num;

    $arr->expected(qr/^ab/)
        ->got('abc')
        ->like;

    $arr->warnings(sub { warn 'Bar' })->catch(qr/^Ba/);
    $arr->throw(sub { die 'Baz' })->catch(qr/^Ba/);

INSTALLATION

Test::Arrow installation is straightforward. If your CPAN shell is set up, you should just be able to do

    % cpan Test::Arrow

Download it, unpack it, then build it as per the usual:

    % perl Makefile.PL
    % make && make test

Then install it:

    % make install

DOCUMENTATION

Test::Arrow documentation is available as in POD. So you can do:

    % perldoc Test::Arrow

REPOSITORY

Test::Arrow is hosted on github http://github.com/bayashi/Test-Arrow

LICENSE

Test::Arrow is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. (Note that, unlike the Artistic License 1.0, version 2.0 is GPL compatible by itself, hence there is no benefit to having an Artistic 2.0 / GPL disjunction.) See the file LICENSE for details.

AUTHOR

Dai Okabayashi <bayashi@cpan.org>