From b509cce0d5a9ca9b66f4076e4a7362caa2769fb8 Mon Sep 17 00:00:00 2001 From: John Kerl Date: Sat, 17 Feb 2024 12:17:48 -0500 Subject: [PATCH] regression-test cases --- test/cases/verb-sparsify/0001/cmd | 1 + test/cases/verb-sparsify/0001/experr | 0 test/cases/verb-sparsify/0001/expout | 17 +++++++++++++++++ test/cases/verb-sparsify/0002/cmd | 1 + test/cases/verb-sparsify/0002/experr | 0 test/cases/verb-sparsify/0002/expout | 21 +++++++++++++++++++++ test/cases/verb-sparsify/0003/cmd | 1 + test/cases/verb-sparsify/0003/experr | 0 test/cases/verb-sparsify/0003/expout | 21 +++++++++++++++++++++ test/cases/verb-sparsify/0004/cmd | 1 + test/cases/verb-sparsify/0004/experr | 0 test/cases/verb-sparsify/0004/expout | 19 +++++++++++++++++++ test/cases/verb-sparsify/0005/cmd | 1 + test/cases/verb-sparsify/0005/experr | 0 test/cases/verb-sparsify/0005/expout | 21 +++++++++++++++++++++ test/cases/verb-sparsify/0006/cmd | 1 + test/cases/verb-sparsify/0006/experr | 0 test/cases/verb-sparsify/0006/expout | 21 +++++++++++++++++++++ test/cases/verb-sparsify/0007/cmd | 1 + test/cases/verb-sparsify/0007/experr | 0 test/cases/verb-sparsify/0007/expout | 22 ++++++++++++++++++++++ test/cases/verb-sparsify/0008/cmd | 1 + test/cases/verb-sparsify/0008/experr | 0 test/cases/verb-sparsify/0008/expout | 22 ++++++++++++++++++++++ 24 files changed, 172 insertions(+) create mode 100644 test/cases/verb-sparsify/0001/cmd create mode 100644 test/cases/verb-sparsify/0001/experr create mode 100644 test/cases/verb-sparsify/0001/expout create mode 100644 test/cases/verb-sparsify/0002/cmd create mode 100644 test/cases/verb-sparsify/0002/experr create mode 100644 test/cases/verb-sparsify/0002/expout create mode 100644 test/cases/verb-sparsify/0003/cmd create mode 100644 test/cases/verb-sparsify/0003/experr create mode 100644 test/cases/verb-sparsify/0003/expout create mode 100644 test/cases/verb-sparsify/0004/cmd create mode 100644 test/cases/verb-sparsify/0004/experr create mode 100644 test/cases/verb-sparsify/0004/expout create mode 100644 test/cases/verb-sparsify/0005/cmd create mode 100644 test/cases/verb-sparsify/0005/experr create mode 100644 test/cases/verb-sparsify/0005/expout create mode 100644 test/cases/verb-sparsify/0006/cmd create mode 100644 test/cases/verb-sparsify/0006/experr create mode 100644 test/cases/verb-sparsify/0006/expout create mode 100644 test/cases/verb-sparsify/0007/cmd create mode 100644 test/cases/verb-sparsify/0007/experr create mode 100644 test/cases/verb-sparsify/0007/expout create mode 100644 test/cases/verb-sparsify/0008/cmd create mode 100644 test/cases/verb-sparsify/0008/experr create mode 100644 test/cases/verb-sparsify/0008/expout diff --git a/test/cases/verb-sparsify/0001/cmd b/test/cases/verb-sparsify/0001/cmd new file mode 100644 index 0000000000..38ec29b150 --- /dev/null +++ b/test/cases/verb-sparsify/0001/cmd @@ -0,0 +1 @@ +mlr --c2j --from test/input/sparsify-input.csv sparsify diff --git a/test/cases/verb-sparsify/0001/experr b/test/cases/verb-sparsify/0001/experr new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/cases/verb-sparsify/0001/expout b/test/cases/verb-sparsify/0001/expout new file mode 100644 index 0000000000..e9c9893a93 --- /dev/null +++ b/test/cases/verb-sparsify/0001/expout @@ -0,0 +1,17 @@ +[ +{ + "a": 1, + "b": 2, + "c": 3 +}, +{ + "a": 4, + "b": 5 +}, +{}, +{ + "a": 7, + "b": 8, + "c": 9 +} +] diff --git a/test/cases/verb-sparsify/0002/cmd b/test/cases/verb-sparsify/0002/cmd new file mode 100644 index 0000000000..3ac1c96309 --- /dev/null +++ b/test/cases/verb-sparsify/0002/cmd @@ -0,0 +1 @@ +mlr --c2j --from test/input/sparsify-input.csv sparsify -f a diff --git a/test/cases/verb-sparsify/0002/experr b/test/cases/verb-sparsify/0002/experr new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/cases/verb-sparsify/0002/expout b/test/cases/verb-sparsify/0002/expout new file mode 100644 index 0000000000..8bc89d0aad --- /dev/null +++ b/test/cases/verb-sparsify/0002/expout @@ -0,0 +1,21 @@ +[ +{ + "a": 1, + "b": 2, + "c": 3 +}, +{ + "a": 4, + "b": 5, + "c": "" +}, +{ + "b": "", + "c": "" +}, +{ + "a": 7, + "b": 8, + "c": 9 +} +] diff --git a/test/cases/verb-sparsify/0003/cmd b/test/cases/verb-sparsify/0003/cmd new file mode 100644 index 0000000000..fc08ebef93 --- /dev/null +++ b/test/cases/verb-sparsify/0003/cmd @@ -0,0 +1 @@ +mlr --c2j --from test/input/sparsify-input.csv sparsify -f b diff --git a/test/cases/verb-sparsify/0003/experr b/test/cases/verb-sparsify/0003/experr new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/cases/verb-sparsify/0003/expout b/test/cases/verb-sparsify/0003/expout new file mode 100644 index 0000000000..b607e38938 --- /dev/null +++ b/test/cases/verb-sparsify/0003/expout @@ -0,0 +1,21 @@ +[ +{ + "a": 1, + "b": 2, + "c": 3 +}, +{ + "a": 4, + "b": 5, + "c": "" +}, +{ + "a": "", + "c": "" +}, +{ + "a": 7, + "b": 8, + "c": 9 +} +] diff --git a/test/cases/verb-sparsify/0004/cmd b/test/cases/verb-sparsify/0004/cmd new file mode 100644 index 0000000000..5ea1aa7bdc --- /dev/null +++ b/test/cases/verb-sparsify/0004/cmd @@ -0,0 +1 @@ +mlr --c2j --from test/input/sparsify-input.csv sparsify -f b,c diff --git a/test/cases/verb-sparsify/0004/experr b/test/cases/verb-sparsify/0004/experr new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/cases/verb-sparsify/0004/expout b/test/cases/verb-sparsify/0004/expout new file mode 100644 index 0000000000..ebf9878cd4 --- /dev/null +++ b/test/cases/verb-sparsify/0004/expout @@ -0,0 +1,19 @@ +[ +{ + "a": 1, + "b": 2, + "c": 3 +}, +{ + "a": 4, + "b": 5 +}, +{ + "a": "" +}, +{ + "a": 7, + "b": 8, + "c": 9 +} +] diff --git a/test/cases/verb-sparsify/0005/cmd b/test/cases/verb-sparsify/0005/cmd new file mode 100644 index 0000000000..012aee2b62 --- /dev/null +++ b/test/cases/verb-sparsify/0005/cmd @@ -0,0 +1 @@ +mlr --c2j --from test/input/sparsify-input.csv sparsify -s 1 diff --git a/test/cases/verb-sparsify/0005/experr b/test/cases/verb-sparsify/0005/experr new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/cases/verb-sparsify/0005/expout b/test/cases/verb-sparsify/0005/expout new file mode 100644 index 0000000000..839476d587 --- /dev/null +++ b/test/cases/verb-sparsify/0005/expout @@ -0,0 +1,21 @@ +[ +{ + "b": 2, + "c": 3 +}, +{ + "a": 4, + "b": 5, + "c": "" +}, +{ + "a": "", + "b": "", + "c": "" +}, +{ + "a": 7, + "b": 8, + "c": 9 +} +] diff --git a/test/cases/verb-sparsify/0006/cmd b/test/cases/verb-sparsify/0006/cmd new file mode 100644 index 0000000000..42567786a0 --- /dev/null +++ b/test/cases/verb-sparsify/0006/cmd @@ -0,0 +1 @@ +mlr --c2j --from test/input/sparsify-input.csv sparsify -f a -s 1 diff --git a/test/cases/verb-sparsify/0006/experr b/test/cases/verb-sparsify/0006/experr new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/cases/verb-sparsify/0006/expout b/test/cases/verb-sparsify/0006/expout new file mode 100644 index 0000000000..839476d587 --- /dev/null +++ b/test/cases/verb-sparsify/0006/expout @@ -0,0 +1,21 @@ +[ +{ + "b": 2, + "c": 3 +}, +{ + "a": 4, + "b": 5, + "c": "" +}, +{ + "a": "", + "b": "", + "c": "" +}, +{ + "a": 7, + "b": 8, + "c": 9 +} +] diff --git a/test/cases/verb-sparsify/0007/cmd b/test/cases/verb-sparsify/0007/cmd new file mode 100644 index 0000000000..99b590da4e --- /dev/null +++ b/test/cases/verb-sparsify/0007/cmd @@ -0,0 +1 @@ +mlr --c2j --from test/input/sparsify-input.csv sparsify -f b -s 1 diff --git a/test/cases/verb-sparsify/0007/experr b/test/cases/verb-sparsify/0007/experr new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/cases/verb-sparsify/0007/expout b/test/cases/verb-sparsify/0007/expout new file mode 100644 index 0000000000..d7f95feba6 --- /dev/null +++ b/test/cases/verb-sparsify/0007/expout @@ -0,0 +1,22 @@ +[ +{ + "a": 1, + "b": 2, + "c": 3 +}, +{ + "a": 4, + "b": 5, + "c": "" +}, +{ + "a": "", + "b": "", + "c": "" +}, +{ + "a": 7, + "b": 8, + "c": 9 +} +] diff --git a/test/cases/verb-sparsify/0008/cmd b/test/cases/verb-sparsify/0008/cmd new file mode 100644 index 0000000000..b943d2c795 --- /dev/null +++ b/test/cases/verb-sparsify/0008/cmd @@ -0,0 +1 @@ +mlr --c2j --from test/input/sparsify-input.csv sparsify -f b,c -s 1 diff --git a/test/cases/verb-sparsify/0008/experr b/test/cases/verb-sparsify/0008/experr new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/cases/verb-sparsify/0008/expout b/test/cases/verb-sparsify/0008/expout new file mode 100644 index 0000000000..d7f95feba6 --- /dev/null +++ b/test/cases/verb-sparsify/0008/expout @@ -0,0 +1,22 @@ +[ +{ + "a": 1, + "b": 2, + "c": 3 +}, +{ + "a": 4, + "b": 5, + "c": "" +}, +{ + "a": "", + "b": "", + "c": "" +}, +{ + "a": 7, + "b": 8, + "c": 9 +} +]