diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-08-30 00:08:34 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-08-30 00:11:26 -0500 |
commit | 7ef54f40657ca05b95a31e7c81c28c2446b2cf37 (patch) | |
tree | d8d5e809c82ae1237f041739a785771a9ab561d9 /t/impl-selection | |
parent | fcc593391ce79d11386af5064dd216682e6f843f (diff) | |
download | package-stash-7ef54f40657ca05b95a31e7c81c28c2446b2cf37.tar.gz package-stash-7ef54f40657ca05b95a31e7c81c28c2446b2cf37.zip |
better test for scalar existence
Diffstat (limited to 't/impl-selection')
-rw-r--r-- | t/impl-selection/basic-pp.t | 4 | ||||
-rw-r--r-- | t/impl-selection/basic-xs.t | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/t/impl-selection/basic-pp.t b/t/impl-selection/basic-pp.t index 7388e80..398f383 100644 --- a/t/impl-selection/basic-pp.t +++ b/t/impl-selection/basic-pp.t @@ -395,8 +395,8 @@ like(exception { [qw(BEGIN bar baz foo quuuux quuux quux)], "list_all_symbols", ); - { local $TODO = ($] < 5.010 || $Package::Stash::IMPLEMENTATION eq 'PP') - ? "undef scalars aren't visible on 5.8, or from pure perl at all" + { local $TODO = $] < 5.010 + ? "undef scalars aren't visible on 5.8" : undef; is_deeply( [sort $quuux->list_all_symbols('SCALAR')], diff --git a/t/impl-selection/basic-xs.t b/t/impl-selection/basic-xs.t index bffd3b7..0fe2aa3 100644 --- a/t/impl-selection/basic-xs.t +++ b/t/impl-selection/basic-xs.t @@ -396,8 +396,8 @@ like(exception { [qw(BEGIN bar baz foo quuuux quuux quux)], "list_all_symbols", ); - { local $TODO = ($] < 5.010 || $Package::Stash::IMPLEMENTATION eq 'PP') - ? "undef scalars aren't visible on 5.8, or from pure perl at all" + { local $TODO = $] < 5.010 + ? "undef scalars aren't visible on 5.8" : undef; is_deeply( [sort $quuux->list_all_symbols('SCALAR')], |