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 | done_testing; |
9 | exit; |
10 | } |
11 | |
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 | |
24 | done_testing; |