File: 06_printf_stdout.t

package info (click to toggle)
libio-capture-perl 0.05-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny, squeeze, wheezy
  • size: 168 kB
  • ctags: 34
  • sloc: perl: 207; makefile: 44
file content (13 lines) | stat: -rw-r--r-- 220 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
use strict;
use warnings;
use Test::More tests => 1;

use IO::Capture::Stdout;

my $capture = IO::Capture::Stdout->new();
$capture->start(); 

printf "Hello World";

$capture->stop(); 
is($capture->read, "Hello World");