Release commit for 1.002005
[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
10is( JSON, 'Cpanel::JSON::XS', 'Correct JSON class' );
11
12is( \&encode_json,
13 \&Cpanel::JSON::XS::encode_json,
14 'Correct encode_json function'
15);
16
17is( \&decode_json,
18 \&Cpanel::JSON::XS::decode_json,
19 'Correct encode_json function'
20);
21
1ca3b561 22require 't/lib/is_bool.pm';
23
16205c4a 24done_testing;