e.g. see http://www.cpantesters.org/cpan/report/
68a147b0-6c06-1014-b73a-88553f3bac98
Revision history for JSON-MaybeXS
+ - fix another test that fails when JSON::XS is installed, but below version 3.0
+
1.004002 - 2020-05-17
- fix test that fails when JSON::XS is installed, but below version 3.0
(RT#132578)
use Test::More 0.88;
use JSON::MaybeXS;
-use Test::Needs 'JSON::XS';
+use Test::Needs { 'JSON::XS' => '3.0' }; # load first, before JSON::MaybeXS
diag 'Using JSON::XS ', JSON::XS->VERSION;
is( JSON, 'JSON::XS', 'Correct JSON class' );