Upgrade to Test-Simple-0.82.
[p5sagit/p5-mst-13.2.git] / lib / Test / Simple / t / note.t
CommitLineData
ccbd73a4 1#!/usr/bin/perl -w
2# $Id: /mirror/googlecode/test-more/t/note.t 60308 2008-09-07T22:36:18.175234Z schwern $
3
4BEGIN {
5 if( $ENV{PERL_CORE} ) {
6 chdir 't';
7 @INC = ('../lib', 'lib');
8 }
9 else {
10 unshift @INC, 't/lib';
11 }
12}
13
14use strict;
15use warnings;
16
17use TieOut;
18
19use Test::More tests => 2;
20
21{
22 my $test = Test::More->builder;
23
24 my $output = tie *FAKEOUT, "TieOut";
25 my $fail_output = tie *FAKEERR, "TieOut";
26 $test->output (*FAKEOUT);
27 $test->failure_output(*FAKEERR);
28
29 note("foo");
30
31 $test->reset_outputs;
32
33 is $output->read, "# foo\n";
34 is $fail_output->read, '';
35}
36