added --every tests

This commit is contained in:
Dima Kogan 2021-03-10 23:42:49 -08:00
parent d7ab28e2f2
commit 0dd24c2cba
3 changed files with 89 additions and 1 deletions

39
t/every-individual.ref Normal file
View File

@ -0,0 +1,39 @@
12 +------------------------------------------------------------------------------------------+
| + + + + + |
| |
| B A |
| |
| |
10 |-+ +-|
| |
| |
| A |
| |
| |
8 |-+ B +-|
| |
| |
| A |
| |
| |
6 |-+ +-|
| |
| |
| B A |
| |
| |
4 |-+ +-|
| |
| |
| A |
| |
| |
2 |-+ B +-|
| |
| |
| A |
| |
| + + + + + |
0 +------------------------------------------------------------------------------------------+
0 2 4 6 8 10 12

39
t/everyall.ref Normal file
View File

@ -0,0 +1,39 @@
12 +------------------------------------------------------------------------------------------+
| + + + + + |
| |
| A |
| |
| |
10 |-+ B +-|
| |
| |
| A |
| |
| |
8 |-+ B +-|
| |
| |
| A |
| |
| |
6 |-+ B +-|
| |
| |
| A |
| |
| |
4 |-+ B +-|
| |
| |
| A |
| |
| |
2 |-+ B +-|
| |
| |
| A |
| |
| + + + + + |
0 +------------------------------------------------------------------------------------------+
0 2 4 6 8 10 12

View File

@ -39,7 +39,7 @@ BEGIN {
}
}
use Test::More tests => 84;
use Test::More tests => 88;
use File::Temp 'tempfile';
use IPC::Run 'run';
use String::ShellQuote;
@ -288,6 +288,16 @@ tryplot( testname => 'equations',
'--ymin', '0'],
refplot => 'equations.ref' );
tryplot( testname => 'everyall',
cmd => q{seq 12 | gawk '{print $1,$1+1}'},
options => [qw(--points --everyall 2)],
refplot => 'everyall.ref' );
tryplot( testname => 'every-individual',
cmd => q{seq 12 | gawk '{print $1,$1+1}'},
options => [qw(--points --every 0 2 --every 1 3)],
refplot => 'every-individual.ref' );
SKIP:
{