#!perl -w
chdir 't';
}
}
# now make a filehandle where we can send data
# force diagnostic output to a filehandle, glad I added this to
# Test::Builder :)
{
}
is( @lines, 3, 'diag() should send messages to its filehandle' );
like( $lines[0], '/^#\s+/', ' should add comment mark to all lines' );
is( $lines[0], "# a single line\n", ' should send exact message' );
is( $output, "# multiple\n# lines\n", ' should append multi messages');
ok( !$ret, 'diag returns false' );
{
}
is( $output, "# # foo\n", "diag() adds a # even if there's one already" );
ok( !$ret, 'diag returns false' );
}
}