From a5129e538980a4e414dffc8ded23c921642e2dea Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 16 Nov 2010 01:34:21 -0600 Subject: okay, working implementation selection --- t/impl-selection/01-choice.t | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 t/impl-selection/01-choice.t (limited to 't/impl-selection/01-choice.t') 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; -- cgit v1.2.3-54-g00ecf