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