File: 08-looknfeel.t

package info (click to toggle)
libsvg-perl 2.87-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 464 kB
  • sloc: perl: 2,789; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 349 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use strict;
use warnings;

use Test::More tests => 2;
use SVG ( -indent => '*', -elsep => '|', -nocredits => 1 );

# test: -indent -elsep -nocredits

my $svg = SVG->new();
$svg->group->text->cdata("Look and Feel");

my $xml = $svg->render();

like( $xml, qr/\n|\|/, "correct element separation" );
like( $xml, qr/\*\*/,  "correct indent string" );