projects
/
p5sagit/JSON-MaybeXS.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
use Test::Needs for backend tests
[p5sagit/JSON-MaybeXS.git]
/
t
/
preload_xs.t
diff --git
a/t/preload_xs.t
b/t/preload_xs.t
index
539b524
..
48dcf1d
100644
(file)
--- a/
t/preload_xs.t
+++ b/
t/preload_xs.t
@@
-1,7
+1,7
@@
use strict;
use warnings;
-use if !eval { require JSON::XS; JSON::XS->VERSION(3.0); 1; }, 'Test::More', skip_all => 'No JSON::XS';
+use Test::Needs { 'JSON::XS' => '3.0' }; # load first, before JSON::MaybeXS
use Test::More 0.88;
use JSON::MaybeXS;