Skip to content

Commit

Permalink
test: blindly attempt to fix perl 5.16 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
G4Vi committed Jun 4, 2024
1 parent 2a662dd commit f306916
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Extism/t/02-extism.t
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ my @highlevel;
$highlevel[1] = $fplugin->call("count_vowels", $hello);
}
my @decoded = map {decode_json $_} @highlevel;
ok($decoded[0]{count} == $decoded[1]{count} == 3);
ok($decoded[0]{total} == 3);
ok($decoded[1]{total} == 6);
ok($decoded[0]->{count} == $decoded[1]->{count} == 3);
ok($decoded[0]->{total} == 3);
ok($decoded[1]->{total} == 6);

# Verify both sets of results are the same
is($highlevel[0], $lowlevel[0]);
Expand Down

0 comments on commit f306916

Please sign in to comment.