summaryrefslogtreecommitdiffstats
path: root/t/impl-selection/01-choice.t
diff options
context:
space:
mode:
Diffstat (limited to 't/impl-selection/01-choice.t')
-rw-r--r--t/impl-selection/01-choice.t17
1 files changed, 17 insertions, 0 deletions
diff --git a/t/impl-selection/01-choice.t b/t/impl-selection/01-choice.t
new file mode 100644
index 0000000..7bbe29c
--- /dev/null
+++ b/t/impl-selection/01-choice.t
@@ -0,0 +1,17 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use Test::More;
+
+my $has_xs = eval "require Package::Stash::XS; 1";
+
+require Package::Stash;
+
+no warnings 'once';
+
+my $expected = $has_xs ? 'XS' : 'PP';
+is($Package::Stash::IMPLEMENTATION, $expected,
+ "autodetected properly: $expected");
+can_ok('Package::Stash', 'new');
+
+done_testing;