Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 12 lines (8 sloc) 0.31 kb
1 2 3 4 5 6 7 8 9 10 11 12
use v6;

use Test;

plan 4;

is "a\nb\n\nc".lines.join('|'), 'a|b||c', '.lines without trailing \n';
is "a\nb\n\nc\n".lines.join('|'), 'a|b||c', '.lines with trailing \n';
is "a\nb\n\nc\n".lines(2).join('|'), 'a|b', '.lines with limit';
is lines("a\nb\nc\n").join('|'), 'a|b|c', '&lines';

# vim: ft=perl6
Something went wrong with that request. Please try again.