added timefmt, style, vnl tests

This commit is contained in:
Dima Kogan 2021-02-08 23:43:21 -08:00
parent 2a91bd742e
commit 0e79551f2b
6 changed files with 233 additions and 0 deletions

View File

@ -183,6 +183,44 @@ tryplot( testname => 'Error bars (using tuplesize, tuplesizeall)',
qw(--xmin 1 --xmax 5 --ymin 0.5 --ymax 5.5)],
refplot => 'error-bars-using-tuplesize-tuplesizeall.ref' );
tryplot( testname => 'timefmt without vnl',
cmd => q{echo -n '# t a b\n1:00 5 6\n1:30 10 6\n2:00 7 6\n2:30 10 9\n'},
options => [qw(--lines --points --domain --timefmt), '%H:%M',
'--set', 'format x "%H:%M"'],
refplot => 'timefmt-without-vnl.ref' );
tryplot( testname => 'timefmt without vnl with style 0 default 1',
cmd => q{echo -n '# t a b\n1:00 5 6\n1:30 10 6\n2:00 7 6\n2:30 10 9\n'},
options => [qw(--domain --timefmt), '%H:%M',
'--set', 'format x "%H:%M"',
'--style', '0', 'with lines lt 7'],
refplot => 'timefmt-without-vnl-with-style0-default1.ref' );
tryplot( testname => 'timefmt without vnl with style',
cmd => q{echo -n '# t a b\n1:00 5 6\n1:30 10 6\n2:00 7 6\n2:30 10 9\n'},
options => [qw(--domain --timefmt), '%H:%M',
'--set', 'format x "%H:%M"',
'--style', '0', 'with lines lt 7',
'--style', '1', 'with lines lt 5' ],
refplot => 'timefmt-without-vnl-with-style.ref' );
tryplot( testname => 'timefmt with vnl with style 0 default 1',
cmd => q{echo -n '# t a b\n1:00 5 6\n1:30 10 6\n2:00 7 6\n2:30 10 9\n'},
options => [qw(--domain --timefmt), '%H:%M',
'--set', 'format x "%H:%M"',
'--vnl',
'--style', 'a', 'with lines lt 7'],
refplot => 'timefmt-with-vnl-with-style0-default1.ref' );
tryplot( testname => 'timefmt with vnl with style',
cmd => q{echo -n '# t a b\n1:00 5 6\n1:30 10 6\n2:00 7 6\n2:30 10 9\n'},
options => [qw(--domain --timefmt), '%H:%M',
'--set', 'format x "%H:%M"',
'--vnl',
'--style', 'a', 'with lines lt 7',
'--style', 'b', 'with lines lt 5' ],
refplot => 'timefmt-with-vnl-with-style.ref' );
SKIP:
{

View File

@ -0,0 +1,39 @@
10 +------------------------------------------------------------------------------------------+
| + + =+ = + + + + + ==|
| = = = |
| = == = |
| = = == |
| = == = |
| = = = |
9 |-+ = = == +-|
| = == = @@|
| = = = @ |
| = == == @ |
| = = = @@ |
| = == == @ |
| = = = @ |
8 |-+ = = = @@ +-|
| = == == @ |
| = = = @ |
| = == = @@ |
| = = == @ |
| = = = @@ |
| = == = @ |
| = == @ |
7 |-+ = = @@ +-|
| = @ |
| = @ |
| = @@ |
| = @ |
| = @ |
| = @@ |
6 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ +-|
| = |
| = |
| = |
| = |
| = |
|= + + + + + + + + |
5 +------------------------------------------------------------------------------------------+
01:00 01:10 01:20 01:30 01:40 01:50 02:00 02:10 02:20 02:30

View File

@ -0,0 +1,39 @@
10 +------------------------------------------------------------------------------------------+
| + + =+ = + + + + + ==|
| = = = |
| = == = |
| = = == |
| = == = |
| = = = |
9 |-+ = = == +-|
| = == = |
| = = = |
| = == == |
| = = = |
| = == == |
| = = = |
8 |-+ = = = +-|
| = == == |
| = = = |
| = == = |
| = = == |
| = = = |
| = == = |
| = == |
7 |-+ = = +-|
| = |
| = |
| = |
| = |
| = |
| = |
6 |-+ = B B +-|
| = |
| = |
| = |
| = |
| = |
|= + + + + + + + + |
5 +------------------------------------------------------------------------------------------+
01:00 01:10 01:20 01:30 01:40 01:50 02:00 02:10 02:20 02:30

View File

@ -0,0 +1,39 @@
10 +------------------------------------------------------------------------------------------+
| + + =+ = + + + + + ==|
| = = = |
| = == = |
| = = == |
| = == = |
| = = = |
9 |-+ = = == +-|
| = == = @@|
| = = = @ |
| = == == @ |
| = = = @@ |
| = == == @ |
| = = = @ |
8 |-+ = = = @@ +-|
| = == == @ |
| = = = @ |
| = == = @@ |
| = = == @ |
| = = = @@ |
| = == = @ |
| = == @ |
7 |-+ = = @@ +-|
| = @ |
| = @ |
| = @@ |
| = @ |
| = @ |
| = @@ |
6 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ +-|
| = |
| = |
| = |
| = |
| = |
|= + + + + + + + + |
5 +------------------------------------------------------------------------------------------+
01:00 01:10 01:20 01:30 01:40 01:50 02:00 02:10 02:20 02:30

View File

@ -0,0 +1,39 @@
10 +------------------------------------------------------------------------------------------+
| + + =+ = + + + + + ==|
| = = = |
| = == = |
| = = == |
| = == = |
| = = = |
9 |-+ = = == +-|
| = == = |
| = = = |
| = == == |
| = = = |
| = == == |
| = = = |
8 |-+ = = = +-|
| = == == |
| = = = |
| = == = |
| = = == |
| = = = |
| = == = |
| = == |
7 |-+ = = +-|
| = |
| = |
| = |
| = |
| = |
| = |
6 |-+ = B B +-|
| = |
| = |
| = |
| = |
| = |
|= + + + + + + + + |
5 +------------------------------------------------------------------------------------------+
01:00 01:10 01:20 01:30 01:40 01:50 02:00 02:10 02:20 02:30

39
t/timefmt-without-vnl.ref Normal file
View File

@ -0,0 +1,39 @@
10 +------------------------------------------------------------------------------------------+
| + + *+ * + + + + + **|
| * * * |
| * ** * |
| * * ** |
| * ** * |
| * * * |
9 |-+ * * ** +-|
| * ** * ##|
| * * * # |
| * ** ** # |
| * * * ## |
| * ** ** # |
| * * * # |
8 |-+ * * * ## +-|
| * ** ** # |
| * * * # |
| * ** * ## |
| * * ** # |
| * * * ## |
| * ** * # |
| * ** # |
7 |-+ * A ## +-|
| * # |
| * # |
| * ## |
| * # |
| * # |
| * ## |
6 |#############################B##############################B +-|
| * |
| * |
| * |
| * |
| * |
|* + + + + + + + + |
5 +------------------------------------------------------------------------------------------+
01:00 01:10 01:20 01:30 01:40 01:50 02:00 02:10 02:20 02:30