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