Skip to content

Commit

Permalink
test: fix split up for 5.16
Browse files Browse the repository at this point in the history
  • Loading branch information
G4Vi committed Jun 4, 2024
1 parent f306916 commit cd25040
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Extism/t/02-extism.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use Extism ':all';
use JSON::PP qw(encode_json decode_json);
use File::Temp qw(tempfile);
use Devel::Peek qw(Dump);
plan tests => 39;
plan tests => 40;

# ...
ok(Extism::version());
Expand Down Expand Up @@ -171,9 +171,10 @@ 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} == 3);
ok($decoded[0]{count} == $decoded[1]{count});
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 cd25040

Please sign in to comment.