added --using, --usingall

This commit is contained in:
Dima Kogan
2021-03-11 13:46:26 -08:00
parent 83139d7ad0
commit d68b331af6
6 changed files with 219 additions and 26 deletions

View File

@@ -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:
{