Skip to content

Commit

Permalink
Fix dualvar_ok to use the right function (#12)
Browse files Browse the repository at this point in the history
Co-authored-by: jwrightecs
  • Loading branch information
briandfoy committed Mar 9, 2024
1 parent c2cb738 commit 3c71f76
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/Test/Data/Scalar.pm
Expand Up @@ -104,10 +104,8 @@ How do I test this?
=cut


sub dualvar_ok ($;$)
{
my $ok = Scalar::Util::dualvar( $_[0] );
sub dualvar_ok ($;$) {
my $ok = Scalar::Util::isdual( $_[0] );
my $name = $_[1] || 'Scalar is a dualvar';

$Test->ok( $ok, $name );
Expand Down

0 comments on commit 3c71f76

Please sign in to comment.