drop the use of fatal warnings in tests
[p5sagit/JSON-MaybeXS.git] / t / xs.t
1 use strict;
2 use warnings;
3
4 use Test::Without::Module 'Cpanel::JSON::XS';
5 use Test::More;
6 use JSON::MaybeXS;
7
8 unless ( eval { require JSON::XS; 1 } ) {
9     plan skip_all => 'No JSON::XS';
10 }
11
12 diag 'Using JSON::XS ', JSON::XS->VERSION;
13
14 is( JSON, 'JSON::XS', 'Correct JSON class' );
15
16 is( \&encode_json, \&JSON::XS::encode_json, 'Correct encode_json function' );
17 is( \&decode_json, \&JSON::XS::decode_json, 'Correct encode_json function' );
18
19 require 't/lib/is_bool.pm';
20
21 done_testing;