<br><br><div class="gmail_quote">On Mon, Dec 29, 2008 at 12:00 PM, <span dir="ltr"><<a href="mailto:spug-list-request@pm.org">spug-list-request@pm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
From: "Michael R. Wolf" <<a href="mailto:MichaelRWolf@att.net">MichaelRWolf@att.net</a>><br>
Subject: SPUG: Test::More::ok() not inverting logic with local $TODO<br>
To: <a href="mailto:spug-list@pm.org">spug-list@pm.org</a><br>
Message-ID: <<a href="mailto:EAEB9C42-0066-4D54-88E3-A15ADC56014E@att.net">EAEB9C42-0066-4D54-88E3-A15ADC56014E@att.net</a>><br>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes<br>
<br>
I was expecting that TODO blocks would fail on success. What am I<br>
missing?<br>
</blockquote><div><br>From <a href="http://search.cpan.org/~mschwern/Test-Simple-0.86/lib/Test/More.pm">http://search.cpan.org/~mschwern/Test-Simple-0.86/lib/Test/More.pm</a> <br> With a todo block, the tests inside are expected to fail. Test::More
will run the tests normally, <br> but print out special flags indicating
they are "todo". Test::Harness will interpret failures as being ok.
<br> Should anything succeed, it will report it as an unexpected success.
You then know the thing <br> you had todo is done and can remove the TODO
flag. <br><br>So the behavior is expected. <br></div></div><br>