File: lineStyle.t

package info (click to toggle)
libchart-gnuplot-perl 0.23-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 944 kB
  • sloc: perl: 4,862; makefile: 113
file content (20 lines) | stat: -rwxr-xr-x 410 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
#!/usr/bin/perl -w
use strict;
use Test::More (tests => 1);

BEGIN {use Chart::Gnuplot;}

# Test formatting the line style
{
	my $d = Chart::Gnuplot::DataSet->new(
		func     => "sin(x)",
		style    => "linespoints",
		color    => "blue",
		linetype => "dash",
		width    => 3,
	);

    my $s = $d->_thaw();
    ok($s eq 'sin(x) title "" with linespoints linetype 3 '.
		'linecolor rgb "blue" linewidth 3');
}