do not add an XS prereq if PUREPERL_ONLY passed to Makefile.PL
[p5sagit/JSON-MaybeXS.git] / t / preload_cpanel.t
CommitLineData
16205c4a 1use strict;
2use warnings FATAL => 'all';
b461f143 3use if !eval { require Cpanel::JSON::XS; 1; }, 'Test::More', skip_all => 'No Cpanel::JSON::XS';
16205c4a 4use Test::More;
5use JSON::MaybeXS;
6
7is(JSON, 'Cpanel::JSON::XS', 'Correct JSON class');
8
9is(
10 \&encode_json, \&Cpanel::JSON::XS::encode_json,
11 'Correct encode_json function'
12);
13
14is(
15 \&decode_json, \&Cpanel::JSON::XS::decode_json,
16 'Correct encode_json function'
17);
18
19done_testing;