Release commit for 1.004003
[p5sagit/JSON-MaybeXS.git] / t / preload_cpanel.t
CommitLineData
16205c4a 1use strict;
4e1fb2f8 2use warnings;
17528b04 3
4use Test::Needs 'Cpanel::JSON::XS'; # load first, before JSON::MaybeXS
2c67ae64 5use Test::More 0.88;
16205c4a 6use JSON::MaybeXS;
7
0b694b31 8diag 'Using Cpanel::JSON::XS ', Cpanel::JSON::XS->VERSION;
9
16205c4a 10is(JSON, 'Cpanel::JSON::XS', 'Correct JSON class');
11
12is(
13 \&encode_json, \&Cpanel::JSON::XS::encode_json,
14 'Correct encode_json function'
15);
16
17is(
18 \&decode_json, \&Cpanel::JSON::XS::decode_json,
19 'Correct encode_json function'
20);
21
9c4f62de 22require './t/lib/is_bool.pm';
1ca3b561 23
16205c4a 24done_testing;