Doc updates on running tests
[p5sagit/p5-mst-13.2.git] / t / lib / feature / implicit
CommitLineData
7dfde25d 1Check implicit loading of features with use VERSION.
2
3__END__
4# Standard feature bundle
5use feature ":5.10";
6say "Hello", "world";
7EXPECT
8Helloworld
9########
10# VERSION requirement, dotted notation
11use 5.9.5;
12say "Hello", "world";
13EXPECT
14Helloworld
15########
16# VERSION requirement, v-dotted notation
17use v5.9.5;
18say "Hello", "world";
19EXPECT
20Helloworld
21########
22# VERSION requirement, decimal notation
23use 5.009005;
24say defined $INC{"feature.pm"} ? "Helloworld" : "Good bye";
25EXPECT
26Helloworld
27########
28# VERSION requirement, doesn't load anything for < 5.9.5
29use 5.8.8;
30print "<".$INC{"feature.pm"}.">\n";
31EXPECT
32<>
33########
34# VERSION requirement, doesn't load anything with require
35require 5.9.5;
36print "<".$INC{"feature.pm"}.">\n";
37EXPECT
38<>
39########
40# VERSION requirement in eval {}
41eval {
42 use 5.9.5;
43 say "Hello", "world";
44}
45EXPECT
46Helloworld
47########
48# VERSION requirement in eval ""
49eval q{
50 use 5.9.5;
51 say "Hello", "world";
52}
53EXPECT
54Helloworld
55########
56# VERSION requirement in BEGIN
57BEGIN {
58 use 5.9.5;
59 say "Hello", "world";
60}
61EXPECT
62Helloworld