mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-12-17 16:21:11 +08:00
added --using, --usingall
This commit is contained in:
17
t/plots.t
17
t/plots.t
@@ -39,7 +39,7 @@ BEGIN {
|
||||
}
|
||||
}
|
||||
|
||||
use Test::More tests => 88;
|
||||
use Test::More tests => 92;
|
||||
use File::Temp 'tempfile';
|
||||
use IPC::Run 'run';
|
||||
use String::ShellQuote;
|
||||
@@ -298,6 +298,21 @@ tryplot( testname => 'every-individual',
|
||||
options => [qw(--points --every 0 2 --every 1 3)],
|
||||
refplot => 'every-individual.ref' );
|
||||
|
||||
tryplot( testname => 'usingall',
|
||||
cmd => q{seq 12 | gawk '{print $1,$1+1}'},
|
||||
options => [qw(--style 0), 'with points pt variable',
|
||||
qw(--style 1), 'with linespoints pt variable',
|
||||
qw(--usingall 1:2:($2) --unset grid)],
|
||||
refplot => 'usingall.ref' );
|
||||
|
||||
tryplot( testname => 'using-individual',
|
||||
cmd => q{seq 12 | gawk '{print $1,$1+1}'},
|
||||
options => [qw(--style 0), 'with points pt variable',
|
||||
qw(--using 0 1:2:($2)),
|
||||
qw(--using 1 1:(12-$2)),
|
||||
qw(--unset grid)],
|
||||
refplot => 'using-individual.ref' );
|
||||
|
||||
SKIP:
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user