Test-Stream
view release on metacpan or search on metacpan
t/acceptance/try_it_todo.t view on Meta::CPAN
use strict;
use warnings;
use Test::Stream::Sync;
use Test::Stream::Context qw/context/;
sub done_testing {
my $ctx = context();
my $state = $ctx->hub->state;
die "Test Already ended!" if $state->ended;
$ctx->hub->finalize($ctx->debug, 1);
$ctx->release;
}
sub ok($;$) {
my ($bool, $name) = @_;
my $ctx = context();
$ctx->ok($bool, $name);
$ctx->release;
}
ok(1, "First");
my $todo = Test::Stream::Sync->stack->top->set_todo('here be dragons');
ok(0, "Second");
$todo = undef;
ok(1, "Third");
done_testing;
1;
( run in 1.699 second using v1.01-cache-2.11-cpan-b16cb0d3907 )