Initial import of JSON::MaybeXS
[p5sagit/JSON-MaybeXS.git] / t / neither.t
CommitLineData
3be1e192 1use strict;
2use warnings FATAL => 'all';
3use Test::Without::Module 'Cpanel::JSON::XS';
4use Test::Without::Module 'JSON::PP';
5use Test::More;
6
7ok(!eval { require JSON::MaybeXS; 1 }, 'Class failed to load');
8
9# Test::Without::Module always causes 'did not return a true value' errors
10
11like(
12 $@, qr{Cpanel/JSON/XS.pm did not.*JSON/PP.pm did not}s,
13 'Both errors reported'
14);
15
16done_testing;