NetHack-Item

 view release on metacpan or  search on metacpan

t/lib/Test/NetHack/Item.pm  view on Meta::CPAN

use warnings;
use base 'Test::More';

use Test::Fatal;
use NetHack::Item;

our @EXPORT = qw/test_items incorporate_ok evolution_not_ok evolution_ok fits_ok fits_not_ok/;

sub import_extra {
    Test::More->export_to_level(2);
    strict->import;
    warnings->import;
}

sub test_items {
    local $Test::Builder::Level = $Test::Builder::Level + 1;
    my @all_checks = @_;

    while (my ($raw, $checks) = splice @_, 0, 2) {
        # simplification if a lot of tests check exactly the same one thing
        if (main->can('testing_method') && !ref($checks)) {



( run in 0.495 second using v1.01-cache-2.11-cpan-299005ec8e3 )