Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (34 sloc) 0.631 kb
#!perl
# Test the basic Modern::Perl functionality works.
use Test::More 'no_plan';
use Test::Warn;
use perl5i::latest;
# strict?
{
ok !eval '$foo = 42', "strict is on";
like $@, qr/^Global symbol "\$foo" requires explicit package name/;
}
# warnings?
{
my $foo;
warning_like {
$foo + 4;
}
qr/^Use of uninitialized value/;
}
# 5.10 features?
{
my $thing = 42;
given($thing) {
when(42) {
pass("given/when enabled");
}
default {
fail("shouldn't reach here");
}
}
}
# C3?
{
is mro::get_mro(__PACKAGE__), "c3", "C3 on";
}
Jump to Line
Something went wrong with that request. Please try again.