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