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