Permalink
Browse files

Changed filenames.

  • Loading branch information...
1 parent df8db35 commit 326cd2e5fcf93d306adcf8f347cea2daf559d345 @sergot committed Jun 10, 2012
Showing with 68 additions and 0 deletions.
  1. +18 −0 t/stderr.t
  2. +16 −0 t/stdout.t
  3. +16 −0 t/t0.t
  4. +18 −0 t/t1.t
View
@@ -0,0 +1,18 @@
+use IO::Capture::Simple;
+use Test;
+
+plan 2;
+
+my $test = "OH HAI!";
+
+my $r = capture_stderr { note $test }
+
+ok $r ~~ /$test/;
+
+$r = '';
+
+capture_stderr_on($r);
+note $test;
+capture_stderr_off;
+
+ok $r ~~ /$test/;
View
@@ -0,0 +1,16 @@
+use IO::Capture::Simple;
+use Test;
+plan 2;
+
+my $test = "OH HAI!";
+
+my $r = capture_stdout { print $test }
+
+ok $r ~~ $test;
+
+$r = '';
+
+capture_stdout_on($r);
+print $test;
+capture_stdout_off;
+ok $r ~~ $test;
View
16 t/t0.t
@@ -0,0 +1,16 @@
+use IO::Capture::Simple;
+use Test;
+plan 2;
+
+my $test = "OH HAI!";
+
+my $r = capture_stdout { print $test }
+
+ok $r ~~ $test;
+
+$r = '';
+
+capture_stdout_on($r);
+print $test;
+capture_stdout_off;
+ok $r ~~ $test;
View
18 t/t1.t
@@ -0,0 +1,18 @@
+use IO::Capture::Simple;
+use Test;
+
+plan 2;
+
+my $test = "OH HAI!";
+
+my $r = capture_stderr { note $test }
+
+ok $r ~~ /$test/;
+
+$r = '';
+
+capture_stderr_on($r);
+note $test;
+capture_stderr_off;
+
+ok $r ~~ /$test/;

0 comments on commit 326cd2e

Please sign in to comment.