add x_contributors metadata
[p5sagit/JSON-MaybeXS.git] / t / cpanel.t
CommitLineData
16205c4a 1use strict;
2use warnings FATAL => 'all';
3use Test::More;
4use JSON::MaybeXS;
5
6unless ( eval { require Cpanel::JSON::XS; 1 } ) {
a3dc87a6 7 plan skip_all => 'No Cpanel::JSON::XS';
16205c4a 8}
9
0b694b31 10diag 'Using Cpanel::JSON::XS ', Cpanel::JSON::XS->VERSION;
11
16205c4a 12is( JSON, 'Cpanel::JSON::XS', 'Correct JSON class' );
13
14is( \&encode_json,
15 \&Cpanel::JSON::XS::encode_json,
16 'Correct encode_json function'
17);
18
19is( \&decode_json,
20 \&Cpanel::JSON::XS::decode_json,
21 'Correct encode_json function'
22);
23
1ca3b561 24require 't/lib/is_bool.pm';
25
16205c4a 26done_testing;