File: 06_printf_stdout.t

package info (click to toggle)
libio-capture-perl 0.05-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 164 kB
  • ctags: 34
  • sloc: perl: 207; makefile: 45
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");