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