Data driven development for Perl6
Perl6
Switch branches/tags
Nothing to show
Latest commit 403d471 Nov 1, 2015 @tokuhirom Skip SKIP sections
Permalink
Failed to load latest commit information.
lib/Test Skip SKIP sections Nov 1, 2015
t Skip SKIP sections Nov 1, 2015
.gitignore initial import Oct 20, 2015
.travis.yml initial import Oct 20, 2015
LICENSE initial import Oct 20, 2015
META6.json use '=begin code' Oct 20, 2015
README.md use '=begin code' Oct 20, 2015

README.md

Build Status

NAME

Test::Base - Data driven development for Perl6

SYNOPSIS

    use v6;
    use Test;

    use Test::Base;

    for blocks($=finish) {
        is EVAL($_<input>), .expected;
    }

    done-testing;

    =finish

    === simple
    --- input: 3+2
    --- expected: 5

    === more
    --- input: 4+2
    --- expected: 6

DESCRIPTION

Test::Base is a port of ingy's perl5 Test::Base for Perl6.

FUNCTIONS

  • blocks(Str $src)

Parse $src as a data source and returns test data.

AUTHOR

Tokuhiro Matsuno tokuhirom@gmail.com

COPYRIGHT AND LICENSE

Copyright 2015 Tokuhiro Matsuno

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.