no need to check Cpanel::JSON::XS version - always add the prereq anyway
[p5sagit/JSON-MaybeXS.git] / t / preload_cpanel.t
1 use strict;
2 use warnings;
3 use if !eval { require Cpanel::JSON::XS; 1; }, 'Test::More', skip_all => 'No Cpanel::JSON::XS';
4 use Test::More 0.88;
5 use JSON::MaybeXS;
6
7 diag 'Using Cpanel::JSON::XS ', Cpanel::JSON::XS->VERSION;
8
9 is(JSON, 'Cpanel::JSON::XS', 'Correct JSON class');
10
11 is(
12   \&encode_json, \&Cpanel::JSON::XS::encode_json,
13   'Correct encode_json function'
14 );
15
16 is(
17   \&decode_json, \&Cpanel::JSON::XS::decode_json,
18   'Correct encode_json function'
19 );
20
21 require 't/lib/is_bool.pm';
22
23 done_testing;