summaryrefslogtreecommitdiff
path: root/ext/XS-APItest/t/fetch_pad_names.t
diff options
context:
space:
mode:
Diffstat (limited to 'ext/XS-APItest/t/fetch_pad_names.t')
-rw-r--r--ext/XS-APItest/t/fetch_pad_names.t5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/XS-APItest/t/fetch_pad_names.t b/ext/XS-APItest/t/fetch_pad_names.t
index bdff1a8fe6..7670e9b3af 100644
--- a/ext/XS-APItest/t/fetch_pad_names.t
+++ b/ext/XS-APItest/t/fetch_pad_names.t
@@ -321,11 +321,10 @@ sub general_tests {
$tests->{pad_size}{invariant}{msg};
for my $var (@{$tests->{vars}}) {
- no warnings 'experimental::smartmatch';
if ($var->{type} eq 'ok') {
- ok $var->{name} ~~ $names_av, $var->{msg};
+ ok +(grep { $_ eq $var->{name} } @$names_av), $var->{msg};
} else {
- ok !($var->{name} ~~ $names_av), $var->{msg};
+ ok !(grep { $_ eq $var->{name} } @$names_av), $var->{msg};
}
}