projects
/
p5sagit/JSON-MaybeXS.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
$JSON_Class is not JSON::XS if version < 3.0
[p5sagit/JSON-MaybeXS.git]
/
t
/
xs.t
diff --git
a/t/xs.t
b/t/xs.t
index
ddae943
..
f768a3b
100644
(file)
--- a/
t/xs.t
+++ b/
t/xs.t
@@
-10,7
+10,7
@@
use lib map {
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' );