Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ for code/input/output expected failures (#440)
- Loading branch information
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
use v6; | ||
|
||
use lib $?FILE.IO.parent(2).add("packages"); | ||
|
||
use Test; | ||
use Test::Util; | ||
|
||
plan 6; | ||
|
||
my $r; | ||
|
||
# Tests expected to fail: | ||
|
||
my $p1 = Q:to<--END-->; | ||
=begin code | ||
say 1; | ||
say 2; | ||
=end | ||
--END-- | ||
my $p2 = Q:to<--END-->; | ||
=begin input | ||
say 1; | ||
say 2; | ||
=end | ||
--END-- | ||
my $p3 = Q:to<--END-->; | ||
=begin output | ||
say 1; | ||
say 2; | ||
=end | ||
--END-- | ||
my $p4 = Q:to<--END-->; | ||
=begin code | ||
say 1; | ||
say 2; | ||
=end input | ||
--END-- | ||
my $p5 = Q:to<--END-->; | ||
=begin input | ||
say 1; | ||
say 2; | ||
=end output | ||
--END-- | ||
my $p6 = Q:to<--END-->; | ||
=begin output | ||
say 1; | ||
say 2; | ||
=end code | ||
--END-- | ||
for $p1, $p2, $p3, $p4, $p5, $p6 -> $POD { | ||
is_run :compiler-args['--doc'], $POD, { | ||
# the %wanted hash | ||
status => 1, | ||
}, 'expected fail of basic --doc check'; | ||
} |