summaryrefslogtreecommitdiff
path: root/cpan/Test-Simple/t/note.t
diff options
context:
space:
mode:
Diffstat (limited to 'cpan/Test-Simple/t/note.t')
-rw-r--r--cpan/Test-Simple/t/note.t30
1 files changed, 30 insertions, 0 deletions
diff --git a/cpan/Test-Simple/t/note.t b/cpan/Test-Simple/t/note.t
new file mode 100644
index 0000000000..fb98fb4029
--- /dev/null
+++ b/cpan/Test-Simple/t/note.t
@@ -0,0 +1,30 @@
+#!/usr/bin/perl -w
+
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't';
+ @INC = ('../lib', 'lib');
+ }
+ else {
+ unshift @INC, 't/lib';
+ }
+}
+
+use strict;
+use warnings;
+
+use Test::Builder::NoOutput;
+
+use Test::More tests => 2;
+
+{
+ my $tb = Test::Builder::NoOutput->create;
+
+ $tb->note("foo");
+
+ $tb->reset_outputs;
+
+ is $tb->read('out'), "# foo\n";
+ is $tb->read('err'), '';
+}
+