Debian Codegraph @

t/904-pmarkdown.t

raw
1 use strict;
2 use warnings;
3 use utf8;
4
5 use FindBin;
6 use lib "${FindBin::Bin}/lib";
7
8 use PmarkdownTest;
9 use Test2::V0;
10
11 my $md_file = "${FindBin::Bin}/../Syntax.md";
12 skip_all 'The Syntax.md file is not part of this distribution' unless -e $md_file;
13
14 my %opt = (md_file => "${FindBin::Bin}/../Syntax.md",
15 mode => 'default',
16 file_parse_mode => 'cmark');
17
18 while ($_ = shift) {
19 $opt{test_num} = shift @ARGV if /^-n$/;
20 }
21
22 test_suite(%opt);
23
24 done_testing;