File: embed_perl.t

package info (click to toggle)
libtest-base-perl 0.88-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 668 kB
  • ctags: 106
  • sloc: perl: 931; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 407 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# This feature allows you to put a Perl section at the top of your
# specification, between <<< and >>>. Not making this an official
# feature yet, until I decide whether I like it.

use Test::Base tests => 2;

run_is;

sub reverse { join '', reverse split '', shift }

__DATA__

<<< delimiters '+++', '***';
filters 'chomp';
>>>


+++ One
*** x reverse
123*
*** y
*321

+++ Two
*** x reverse
abc
*** y
cba