File: 812-todo.t

package info (click to toggle)
libtest-simple-perl 1.302162-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,212 kB
  • sloc: perl: 11,696; makefile: 7
file content (21 lines) | stat: -rw-r--r-- 487 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;