Bumping version to 1.004001
[p5sagit/JSON-MaybeXS.git] / t / cpanel.t
CommitLineData
16205c4a 1use strict;
4e1fb2f8 2use warnings;
2c67ae64 3use Test::More 0.88;
16205c4a 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
9c4f62de 24require './t/lib/is_bool.pm';
1ca3b561 25
16205c4a 26done_testing;