File: 16_lines.t

package info (click to toggle)
libperlude-perl 0.61-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 360 kB
  • sloc: perl: 903; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 267 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /usr/bin/perl
use strict;
use warnings;
use Test::More;
use Perlude::Lazy;

my @seed = qw/ toto tata tutu /;
my $content = 'toto
tata
tutu
';

open my $file, '<', \$content;

is_deeply
( [fold lines $file]
, [map { "$_\n" } @seed]
, "raw lines" );

done_testing;