diff --git a/test/cases/io-barred-pprint/barred-input-headerless/cmd b/test/cases/io-barred-pprint/barred-input-headerless/cmd index 41ebbe6712..de4ebd0d89 100644 --- a/test/cases/io-barred-pprint/barred-input-headerless/cmd +++ b/test/cases/io-barred-pprint/barred-input-headerless/cmd @@ -1 +1 @@ -mlr --hi --i pprint --barred-input -o json test/input/abixy.tbl +mlr --hi -i pprint --barred-input -o json cat test/input/abixy.tbl diff --git a/test/cases/io-barred-pprint/barred-input-headerless/experr b/test/cases/io-barred-pprint/barred-input-headerless/experr index 87bf02e26b..e69de29bb2 100644 --- a/test/cases/io-barred-pprint/barred-input-headerless/experr +++ b/test/cases/io-barred-pprint/barred-input-headerless/experr @@ -1,2 +0,0 @@ -mlr: option "--i" not recognized. -Please run "mlr --help" for usage information. diff --git a/test/cases/io-barred-pprint/barred-input-headerless/expout b/test/cases/io-barred-pprint/barred-input-headerless/expout index e69de29bb2..e08b56a901 100644 --- a/test/cases/io-barred-pprint/barred-input-headerless/expout +++ b/test/cases/io-barred-pprint/barred-input-headerless/expout @@ -0,0 +1,79 @@ +[ +{ + "1": "a", + "2": "b", + "3": "i", + "4": "x", + "5": "y" +}, +{ + "1": "pan", + "2": "pan", + "3": 1, + "4": 0.34679014, + "5": 0.72680286 +}, +{ + "1": "eks", + "2": "pan", + "3": 2, + "4": 0.75867996, + "5": 0.52215111 +}, +{ + "1": "wye", + "2": "wye", + "3": 3, + "4": 0.20460331, + "5": 0.33831853 +}, +{ + "1": "eks", + "2": "wye", + "3": 4, + "4": 0.38139939, + "5": 0.13418874 +}, +{ + "1": "wye", + "2": "pan", + "3": 5, + "4": 0.57328892, + "5": 0.86362447 +}, +{ + "1": "zee", + "2": "pan", + "3": 6, + "4": 0.52712616, + "5": 0.49322129 +}, +{ + "1": "eks", + "2": "zee", + "3": 7, + "4": 0.61178406, + "5": 0.18788492 +}, +{ + "1": "zee", + "2": "wye", + "3": 8, + "4": 0.59855401, + "5": 0.97618139 +}, +{ + "1": "hat", + "2": "wye", + "3": 9, + "4": 0.03144188, + "5": 0.74955076 +}, +{ + "1": "pan", + "2": "wye", + "3": 10, + "4": 0.50262601, + "5": 0.95261836 +} +] diff --git a/test/cases/io-barred-pprint/barred-input-headerless/should-fail b/test/cases/io-barred-pprint/barred-input-headerless/should-fail deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/test/cases/io-barred-pprint/barred-input/cmd b/test/cases/io-barred-pprint/barred-input/cmd index f841265717..4c6742df63 100644 --- a/test/cases/io-barred-pprint/barred-input/cmd +++ b/test/cases/io-barred-pprint/barred-input/cmd @@ -1 +1 @@ -mlr --i pprint --barred-input -o json test/input/abixy.tbl +mlr -i pprint --barred-input -o json cat test/input/abixy.tbl diff --git a/test/cases/io-barred-pprint/barred-input/experr b/test/cases/io-barred-pprint/barred-input/experr index 87bf02e26b..e69de29bb2 100644 --- a/test/cases/io-barred-pprint/barred-input/experr +++ b/test/cases/io-barred-pprint/barred-input/experr @@ -1,2 +0,0 @@ -mlr: option "--i" not recognized. -Please run "mlr --help" for usage information. diff --git a/test/cases/io-barred-pprint/barred-input/expout b/test/cases/io-barred-pprint/barred-input/expout index e69de29bb2..48da252107 100644 --- a/test/cases/io-barred-pprint/barred-input/expout +++ b/test/cases/io-barred-pprint/barred-input/expout @@ -0,0 +1,72 @@ +[ +{ + "a": "pan", + "b": "pan", + "i": 1, + "x": 0.34679014, + "y": 0.72680286 +}, +{ + "a": "eks", + "b": "pan", + "i": 2, + "x": 0.75867996, + "y": 0.52215111 +}, +{ + "a": "wye", + "b": "wye", + "i": 3, + "x": 0.20460331, + "y": 0.33831853 +}, +{ + "a": "eks", + "b": "wye", + "i": 4, + "x": 0.38139939, + "y": 0.13418874 +}, +{ + "a": "wye", + "b": "pan", + "i": 5, + "x": 0.57328892, + "y": 0.86362447 +}, +{ + "a": "zee", + "b": "pan", + "i": 6, + "x": 0.52712616, + "y": 0.49322129 +}, +{ + "a": "eks", + "b": "zee", + "i": 7, + "x": 0.61178406, + "y": 0.18788492 +}, +{ + "a": "zee", + "b": "wye", + "i": 8, + "x": 0.59855401, + "y": 0.97618139 +}, +{ + "a": "hat", + "b": "wye", + "i": 9, + "x": 0.03144188, + "y": 0.74955076 +}, +{ + "a": "pan", + "b": "wye", + "i": 10, + "x": 0.50262601, + "y": 0.95261836 +} +] diff --git a/test/cases/io-barred-pprint/barred-input/should-fail b/test/cases/io-barred-pprint/barred-input/should-fail deleted file mode 100644 index e69de29bb2..0000000000