fix test failure with JSON::XS 2.x (RT#132578)
[p5sagit/JSON-MaybeXS.git] / t / preload_xs.t
CommitLineData
16205c4a 1use strict;
4e1fb2f8 2use warnings;
0b694b31 3
bca3f2ef 4use if !eval { require JSON::XS; JSON::XS->VERSION(3.0); 1; }, 'Test::More', skip_all => 'No JSON::XS';
2c67ae64 5use Test::More 0.88;
16205c4a 6use JSON::MaybeXS;
7
0b694b31 8diag 'Using JSON::XS ', JSON::XS->VERSION;
9
16205c4a 10is( JSON, 'JSON::XS', 'Correct JSON class' );
11
12is( \&encode_json, \&JSON::XS::encode_json, 'Correct encode_json function' );
13is( \&decode_json, \&JSON::XS::decode_json, 'Correct encode_json function' );
14
9c4f62de 15require './t/lib/is_bool.pm';
1ca3b561 16
16205c4a 17done_testing;