Commit | Line | Data |
---|---|---|
16205c4a | 1 | use strict; |
2 | use warnings FATAL => 'all'; | |
b461f143 | 3 | use if !eval { require JSON::XS; 1; }, 'Test::More', skip_all => 'No JSON::XS'; |
16205c4a | 4 | use Test::More; |
5 | use JSON::MaybeXS; | |
6 | ||
7 | is( JSON, 'JSON::XS', 'Correct JSON class' ); | |
8 | ||
9 | is( \&encode_json, \&JSON::XS::encode_json, 'Correct encode_json function' ); | |
10 | is( \&decode_json, \&JSON::XS::decode_json, 'Correct encode_json function' ); | |
11 | ||
1ca3b561 | 12 | require 't/lib/is_bool.pm'; |
13 | ||
16205c4a | 14 | done_testing; |