File: 015-multiline.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 (10 lines) | stat: -rw-r--r-- 305 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
use strict;
use warnings;
use Test::More tests => 1;
use Data::Printer::Object;

my $data = [ 1, 2, { foo => 3, bar => 4 } ];
push @$data, $data->[2];

my $ddp = Data::Printer::Object->new( colored => 0, multiline => 0 );
is( $ddp->parse($data), '[ 1, 2, { bar:4, foo:3 }, var[2] ]', 'single line dump');