use Test::Needs for backend tests
[p5sagit/JSON-MaybeXS.git] / t / preload_cpanel.t
1 use strict;
2 use warnings;
3
4 use Test::Needs 'Cpanel::JSON::XS'; # load first, before JSON::MaybeXS
5 use Test::More 0.88;
6 use JSON::MaybeXS;
7
8 diag 'Using Cpanel::JSON::XS ', Cpanel::JSON::XS->VERSION;
9
10 is(JSON, 'Cpanel::JSON::XS', 'Correct JSON class');
11
12 is(
13   \&encode_json, \&Cpanel::JSON::XS::encode_json,
14   'Correct encode_json function'
15 );
16
17 is(
18   \&decode_json, \&Cpanel::JSON::XS::decode_json,
19   'Correct encode_json function'
20 );
21
22 require './t/lib/is_bool.pm';
23
24 done_testing;