Workshop o mikrokontrolérech na SKSP 2024.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

108 lines
2.4 KiB

2 months ago
Run: ../obj/ucw/table-test -T cols:col3_bool
Out <<EOF
col3_bool
true
false
EOF
Run: ../obj/ucw/table-test -T cols:col3_bool,col0_str
Out <<EOF
col3_bool col0_str
true sdsdf
false test
EOF
Run: ../obj/ucw/table-test -T cols:col3_bool,col0_str
Out <<EOF
col3_bool col0_str
true sdsdf
false test
EOF
Run: ../obj/ucw/table-test -T cols:col3_bool,col0_str,col4_double
Out <<EOF
col3_bool col0_str col4_double
true sdsdf 1.50
false test 1.50
EOF
Run: ../obj/ucw/table-test -T cols:col3_bool,col0_str,col4_double -T 'col-delim:;' -T fmt:machine
Out <<EOF
col3_bool;col0_str;col4_double
true;sdsdf;1.50
false;test;1.50
EOF
Run: ../obj/ucw/table-test -T cols:col3_bool,col0_str,col4_double -T 'col-delim:;' -T fmt:machine -T header:1
Out <<EOF
col3_bool;col0_str;col4_double
true;sdsdf;1.50
false;test;1.50
EOF
Run: ../obj/ucw/table-test -T cols:col3_bool,col0_str,col4_double -T 'col-delim:;' -T fmt:machine -T header:0
Out <<EOF
true;sdsdf;1.50
false;test;1.50
EOF
Run: ../obj/ucw/table-test -T cols:col3_bool,col0_str,col4_double -T 'col-delim:;' -T fmt:machine -T noheader
Out <<EOF
true;sdsdf;1.50
false;test;1.50
EOF
Run: ../obj/ucw/table-test -T cols:col3_bool,col0_str,col4_double -T 'col-delim:AHOJ' -T fmt:machine -T noheader
Out <<EOF
trueAHOJsdsdfAHOJ1.50
falseAHOJtestAHOJ1.50
EOF
Run: ../obj/ucw/table-test -T 'cols:*' -T fmt:blockline
Out <<EOF
col0_str: sdsdf
col1_int: 10000
col2_uint: XXX-22222
col3_bool: 1
col4_double: 1.5
col5_size: 5368709120
col6_timestamp: 1404305876
col0_str: test
col1_int: -100
col2_uint: 100
col3_bool: 0
col4_double: 1.5
col5_size: 2147483648
col6_timestamp: 1404305909
EOF
Run: ../obj/ucw/table-test -n
Out <<EOF
Tableprinter option parser returned: 'Unknown table column 'test_col0_str', possible column names are: col0_str, col1_int, col2_uint, col3_bool, col4_double, col5_size, col6_timestamp.'.
EOF
Run: ../obj/ucw/table-test -d
Out <<EOF
col0_int col1_int col2_int
0 1 2
10 11 12
EOF
Run: ../obj/ucw/table-test -i
Out <<EOF
Tableprinter option parser returned error: "Invalid option: 'invalid:option'.".
Tableprinter option parser returned error: "Invalid option: 'invalid'.".
setting key: novaluekey; value: (null)
setting key: valuekey; value: value
EOF