Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Most places honored a defined but false $TODO setting. One place did not honor it. This has been corrected. Fixes #812
- Loading branch information
Showing
3 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
use strict; | ||
use warnings; | ||
|
||
use Test2::API qw/intercept/; | ||
use Test::More; | ||
|
||
my @values = ( | ||
"", # false but defined -> inconsistent | ||
0, # false but defined -> inconsistent | ||
0.0, # false but defined -> inconsistent | ||
"0.0", # true -> TODO | ||
"this is why", # as expected | ||
); | ||
|
||
for my $value (@values) { | ||
local $TODO = $value; | ||
my $x = defined($value) ? "\"$value\"" : 'UNDEF'; | ||
fail "Testing: $x"; | ||
} | ||
|
||
done_testing; |