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