Skip to content

Commit

Permalink
t/run/todo.t: Avoid "Odd number of elements" warning
Browse files Browse the repository at this point in the history
The third argument to t/test.pl's fresh_perl_is() function is an
anonymous hash; therefore, it must have an even number of elements.  In
this case, that even number would be 0.  As it stood, we were getting
this warning:

"Odd number of elements in anonymous hash at run/todo.t line 30."
  • Loading branch information
jkeenan committed Jun 12, 2024
1 parent 7c85ab5 commit 0279375
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion t/run/todo.t
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ TODO: {
"abcde5678" =~ / b .* (*plb:(*plb:(.{4}))? (.{5}) ) .$ /x;
print $1 // "undef", ":", $2 // "undef", "\n";
EOF
"undef:de567\nundef:de567", { $switches }, "");
"undef:de567\nundef:de567",
{},
""
);
}

done_testing();

0 comments on commit 0279375

Please sign in to comment.