2c9243a34693381a0e67da158258acb325b67a99
[p5sagit/JSON-MaybeXS.git] / t / preload_cpanel.t
1 use strict;
2 use warnings FATAL => 'all';
3 use if !do { require Cpanel::JSON::XS; 1; }, 'Test::More', skip_all => 'No Cpanel::JSON::XS';
4 use Test::More;
5 use JSON::MaybeXS;
6
7 is(JSON, 'Cpanel::JSON::XS', 'Correct JSON class');
8
9 is(
10   \&encode_json, \&Cpanel::JSON::XS::encode_json,
11   'Correct encode_json function'
12 );
13
14 is(
15   \&decode_json, \&Cpanel::JSON::XS::decode_json,
16   'Correct encode_json function'
17 );
18
19 done_testing;