Debian Codegraph @

html/t/00-load.t

raw
1 #!perl
2 # Copyright 2022 Jeffrey Kegler
3 # This file is part of Marpa::R2. Marpa::R2 is free software: you can
4 # redistribute it and/or modify it under the terms of the GNU Lesser
5 # General Public License as published by the Free Software Foundation,
6 # either version 3 of the License, or (at your option) any later version.
7 #
8 # Marpa::R2 is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser
14 # General Public License along with Marpa::R2. If not, see
15 # http://www.gnu.org/licenses/.
16 # This is free software; you can redistribute it and/or modify it
17 # under the same terms as the Perl 5 programming language system
18 # itself.
19
20 use 5.010001;
21 use warnings;
22 use strict;
23
24 use Carp;
25 use Data::Dumper;
26 use English qw( -no_match_vars );
27 use Test::More;
28
29 BEGIN {
30 use lib 'html/tool/lib';
31 my $eval_result = eval { require Marpa::R2::HTML::Test::Util; 1 };
32 if ( !$eval_result ) {
33 Test::More::plan tests => 1;
34 Test::More::fail(
35 "Could not load Marpa::R2::HTML::Test::Util; $EVAL_ERROR");
36 exit 0;
37 } ## end if ( !$eval_result )
38 } ## end BEGIN
39
40 BEGIN { Marpa::R2::HTML::Test::Util::load_or_skip_all('HTML::Parser'); }
41
42 Test::More::plan tests => 1;
43
44 use Marpa::R2::HTML;
45
46 Test::More::diag( 'Using Marpa::R2::HTML ', $Marpa::R2::HTML::VERSION );
47
48 Test::More::ok( defined $Marpa::R2::TIMESTAMP,
49 'Marpa::XS Timestamp defined' );
50 Test::More::diag( 'Using Marpa::R2 ',
51 $Marpa::R2::VERSION, q{ }, $Marpa::R2::TIMESTAMP );
52
53 1; # In case used as "do" file
54