File: load-yaml-pp.t

package info (click to toggle)
libjson-validator-perl 4.14%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 828 kB
  • sloc: perl: 2,816; makefile: 14
file content (15 lines) | stat: -rw-r--r-- 342 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
BEGIN {
  unshift @INC, sub {
    my $file = $_[1];
    die "Skipping $file in this test" if $file =~ m!YAML\W+XS\.pm$!;
  };
}

use Test::More;

plan skip_all => 'YAML::PP not available' unless eval 'require JSON::Validator;1';
ok $INC{'YAML/PP.pm'}, 'YAML::PP was loaded';
ok !$INC{'YAML/XS.pm'}, 'YAML::XS was not loaded';

done_testing;