Move Test::Simple from lib to ext.
[p5sagit/p5-mst-13.2.git] / ext / Test-Simple / t / note.t
CommitLineData
ccbd73a4 1#!/usr/bin/perl -w
ccbd73a4 2
3BEGIN {
4 if( $ENV{PERL_CORE} ) {
5 chdir 't';
6 @INC = ('../lib', 'lib');
7 }
8 else {
9 unshift @INC, 't/lib';
10 }
11}
12
13use strict;
14use warnings;
15
3e887aae 16use Test::Builder::NoOutput;
ccbd73a4 17
18use Test::More tests => 2;
19
20{
3e887aae 21 my $tb = Test::Builder::NoOutput->create;
ccbd73a4 22
3e887aae 23 $tb->note("foo");
ccbd73a4 24
3e887aae 25 $tb->reset_outputs;
ccbd73a4 26
3e887aae 27 is $tb->read('out'), "# foo\n";
28 is $tb->read('err'), '';
ccbd73a4 29}
30