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