File: synopsis5.t

package info (click to toggle)
libio-all-perl 0.87-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 712 kB
  • sloc: perl: 2,017; makefile: 5
file content (14 lines) | stat: -rw-r--r-- 359 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use strict; use warnings;
my $t; use lib ($t = -e 't' ? 't' : 'test');
use Test::More tests => 3;
use IO::All;

# Write some data to a temporary file and retrieve all the paragraphs.
my $data = io("$t/synopsis5.t")->slurp;

my $temp = io->temp;
ok($temp->print($data));
ok($temp->seek(0, 0));

my @paragraphs = $temp->getlines('');
is(scalar @paragraphs, 4);