1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
use strict;
use warnings;
use FindBin;
use lib "$FindBin::Bin/../";
use Test::More;
use t::Util;
# JHTHORSEN/Mandel-0.29/lib/Mandel/Model.pm
test('basic', <<'END', {'Mojo::Base' => 0, 'Mandel::Document' => 0});
use Mojo::Base 'Mandel::Document';
END
# JHTHORSEN/Mandel-0.29/lib/Mandel.pm
test('Mojo::Base itself', <<'END', {'Mojo::Base' => 0});
use Mojo::Base 'Mojo::Base';
END
test('-base', <<'END', {'Mojo::Base' => 0});
use Mojo::Base -base;
END
test('-strict', <<'END', {'Mojo::Base' => 0});
use Mojo::Base '-strict';
END
test('package with a single quote', <<'END', {'Mojo::Base' => 0, 'Mojo::BaseTestTest' => 0});
use Mojo::Base "Mojo'BaseTestTest";
END
done_testing;
|