File: 007.format.t

package info (click to toggle)
libdata-printer-perl 1.002001-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 748 kB
  • sloc: perl: 4,364; makefile: 7; sh: 1
file content (14 lines) | stat: -rw-r--r-- 239 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use strict;
use warnings;
use Test::More tests => 1;
use Data::Printer::Object;


format TEST =
.

my $form = *TEST{FORMAT};

my $ddp = Data::Printer::Object->new( colored => 0 );

is( $ddp->parse(\$form), 'FORMAT',  'FORMAT reference' );