From 5a4d94a93355d74f9abd2ed80b7010376815e6ee Mon Sep 17 00:00:00 2001 From: John Kerl Date: Sat, 23 Dec 2023 15:54:47 -0500 Subject: [PATCH] unit-test cases --- test/cases/verb-uniq/uniq-c-x-change/cmd | 1 + test/cases/verb-uniq/uniq-c-x-change/experr | 0 test/cases/verb-uniq/uniq-c-x-change/expout | 7 +++++++ test/cases/verb-uniq/uniq-c-x-het/cmd | 1 + test/cases/verb-uniq/uniq-c-x-het/experr | 0 test/cases/verb-uniq/uniq-c-x-het/expout | 6 ++++++ test/cases/verb-uniq/uniq-c-x-long/cmd | 1 + test/cases/verb-uniq/uniq-c-x-long/experr | 0 test/cases/verb-uniq/uniq-c-x-long/expout | 7 +++++++ test/cases/verb-uniq/uniq-c-x-short/cmd | 1 + test/cases/verb-uniq/uniq-c-x-short/experr | 0 test/cases/verb-uniq/uniq-c-x-short/expout | 6 ++++++ test/cases/verb-uniq/uniq-x-change/cmd | 1 + test/cases/verb-uniq/uniq-x-change/experr | 0 test/cases/verb-uniq/uniq-x-change/expout | 7 +++++++ test/cases/verb-uniq/uniq-x-het/cmd | 1 + test/cases/verb-uniq/uniq-x-het/experr | 0 test/cases/verb-uniq/uniq-x-het/expout | 6 ++++++ test/cases/verb-uniq/uniq-x-long/cmd | 1 + test/cases/verb-uniq/uniq-x-long/experr | 0 test/cases/verb-uniq/uniq-x-long/expout | 7 +++++++ test/cases/verb-uniq/uniq-x-short/cmd | 1 + test/cases/verb-uniq/uniq-x-short/experr | 0 test/cases/verb-uniq/uniq-x-short/expout | 6 ++++++ 24 files changed, 60 insertions(+) create mode 100644 test/cases/verb-uniq/uniq-c-x-change/cmd create mode 100644 test/cases/verb-uniq/uniq-c-x-change/experr create mode 100644 test/cases/verb-uniq/uniq-c-x-change/expout create mode 100644 test/cases/verb-uniq/uniq-c-x-het/cmd create mode 100644 test/cases/verb-uniq/uniq-c-x-het/experr create mode 100644 test/cases/verb-uniq/uniq-c-x-het/expout create mode 100644 test/cases/verb-uniq/uniq-c-x-long/cmd create mode 100644 test/cases/verb-uniq/uniq-c-x-long/experr create mode 100644 test/cases/verb-uniq/uniq-c-x-long/expout create mode 100644 test/cases/verb-uniq/uniq-c-x-short/cmd create mode 100644 test/cases/verb-uniq/uniq-c-x-short/experr create mode 100644 test/cases/verb-uniq/uniq-c-x-short/expout create mode 100644 test/cases/verb-uniq/uniq-x-change/cmd create mode 100644 test/cases/verb-uniq/uniq-x-change/experr create mode 100644 test/cases/verb-uniq/uniq-x-change/expout create mode 100644 test/cases/verb-uniq/uniq-x-het/cmd create mode 100644 test/cases/verb-uniq/uniq-x-het/experr create mode 100644 test/cases/verb-uniq/uniq-x-het/expout create mode 100644 test/cases/verb-uniq/uniq-x-long/cmd create mode 100644 test/cases/verb-uniq/uniq-x-long/experr create mode 100644 test/cases/verb-uniq/uniq-x-long/expout create mode 100644 test/cases/verb-uniq/uniq-x-short/cmd create mode 100644 test/cases/verb-uniq/uniq-x-short/experr create mode 100644 test/cases/verb-uniq/uniq-x-short/expout diff --git a/test/cases/verb-uniq/uniq-c-x-change/cmd b/test/cases/verb-uniq/uniq-c-x-change/cmd new file mode 100644 index 0000000000..2f34184618 --- /dev/null +++ b/test/cases/verb-uniq/uniq-c-x-change/cmd @@ -0,0 +1 @@ +mlr --dkvp uniq -c -x flag,k,index,quantity,rate test/input/example-with-changed-keys.dkvp diff --git a/test/cases/verb-uniq/uniq-c-x-change/experr b/test/cases/verb-uniq/uniq-c-x-change/experr new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/cases/verb-uniq/uniq-c-x-change/expout b/test/cases/verb-uniq/uniq-c-x-change/expout new file mode 100644 index 0000000000..a61ce84e8f --- /dev/null +++ b/test/cases/verb-uniq/uniq-c-x-change/expout @@ -0,0 +1,7 @@ +color=yellow,shape=triangle,count=1 +color=red,shape=square,count=2 +weird=red,shape=circle,count=1 +color=purple,shape=triangle,count=2 +color=red,shape=square,odd=77.19910000,count=1 +color=yellow,shape=circle,count=2 +color=purple,shape=square,count=1 diff --git a/test/cases/verb-uniq/uniq-c-x-het/cmd b/test/cases/verb-uniq/uniq-c-x-het/cmd new file mode 100644 index 0000000000..051906fe11 --- /dev/null +++ b/test/cases/verb-uniq/uniq-c-x-het/cmd @@ -0,0 +1 @@ +mlr --dkvp uniq -c -x flag,k,index,quantity,rate test/input/example.dkvp diff --git a/test/cases/verb-uniq/uniq-c-x-het/experr b/test/cases/verb-uniq/uniq-c-x-het/experr new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/cases/verb-uniq/uniq-c-x-het/expout b/test/cases/verb-uniq/uniq-c-x-het/expout new file mode 100644 index 0000000000..5392f140e9 --- /dev/null +++ b/test/cases/verb-uniq/uniq-c-x-het/expout @@ -0,0 +1,6 @@ +color=yellow,shape=triangle,count=1 +color=red,shape=square,count=3 +color=red,shape=circle,count=1 +color=purple,shape=triangle,count=2 +color=yellow,shape=circle,count=2 +color=purple,shape=square,count=1 diff --git a/test/cases/verb-uniq/uniq-c-x-long/cmd b/test/cases/verb-uniq/uniq-c-x-long/cmd new file mode 100644 index 0000000000..38fe9e5c3f --- /dev/null +++ b/test/cases/verb-uniq/uniq-c-x-long/cmd @@ -0,0 +1 @@ +mlr --dkvp uniq -c -x flag,k,index,quantity,rate test/input/example-with-extra-keys.dkvp diff --git a/test/cases/verb-uniq/uniq-c-x-long/experr b/test/cases/verb-uniq/uniq-c-x-long/experr new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/cases/verb-uniq/uniq-c-x-long/expout b/test/cases/verb-uniq/uniq-c-x-long/expout new file mode 100644 index 0000000000..d77e08b278 --- /dev/null +++ b/test/cases/verb-uniq/uniq-c-x-long/expout @@ -0,0 +1,7 @@ +color=yellow,shape=triangle,count=1 +color=red,shape=square,count=3 +color=red,shape=circle,count=1 +color=purple,shape=triangle,extra=here,count=1 +color=purple,shape=triangle,count=1 +color=yellow,shape=circle,count=2 +color=purple,shape=square,count=1 diff --git a/test/cases/verb-uniq/uniq-c-x-short/cmd b/test/cases/verb-uniq/uniq-c-x-short/cmd new file mode 100644 index 0000000000..9561cc361f --- /dev/null +++ b/test/cases/verb-uniq/uniq-c-x-short/cmd @@ -0,0 +1 @@ +mlr --dkvp uniq -c -x flag,k,index,quantity,rate test/input/example-with-missing-keys.dkvp diff --git a/test/cases/verb-uniq/uniq-c-x-short/experr b/test/cases/verb-uniq/uniq-c-x-short/experr new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/cases/verb-uniq/uniq-c-x-short/expout b/test/cases/verb-uniq/uniq-c-x-short/expout new file mode 100644 index 0000000000..7e7269533e --- /dev/null +++ b/test/cases/verb-uniq/uniq-c-x-short/expout @@ -0,0 +1,6 @@ +color=yellow,shape=triangle,count=1 +color=red,shape=square,count=3 +shape=circle,count=1 +color=purple,shape=triangle,count=2 +color=yellow,shape=circle,count=2 +color=purple,shape=square,count=1 diff --git a/test/cases/verb-uniq/uniq-x-change/cmd b/test/cases/verb-uniq/uniq-x-change/cmd new file mode 100644 index 0000000000..43006f3900 --- /dev/null +++ b/test/cases/verb-uniq/uniq-x-change/cmd @@ -0,0 +1 @@ +mlr --dkvp uniq -x flag,k,index,quantity,rate test/input/example-with-changed-keys.dkvp diff --git a/test/cases/verb-uniq/uniq-x-change/experr b/test/cases/verb-uniq/uniq-x-change/experr new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/cases/verb-uniq/uniq-x-change/expout b/test/cases/verb-uniq/uniq-x-change/expout new file mode 100644 index 0000000000..67f9598af9 --- /dev/null +++ b/test/cases/verb-uniq/uniq-x-change/expout @@ -0,0 +1,7 @@ +color=yellow,shape=triangle +color=red,shape=square +weird=red,shape=circle +color=purple,shape=triangle +color=red,shape=square,odd=77.19910000 +color=yellow,shape=circle +color=purple,shape=square diff --git a/test/cases/verb-uniq/uniq-x-het/cmd b/test/cases/verb-uniq/uniq-x-het/cmd new file mode 100644 index 0000000000..326412e629 --- /dev/null +++ b/test/cases/verb-uniq/uniq-x-het/cmd @@ -0,0 +1 @@ +mlr --dkvp uniq -x flag,k,index,quantity,rate test/input/example.dkvp diff --git a/test/cases/verb-uniq/uniq-x-het/experr b/test/cases/verb-uniq/uniq-x-het/experr new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/cases/verb-uniq/uniq-x-het/expout b/test/cases/verb-uniq/uniq-x-het/expout new file mode 100644 index 0000000000..ddc9002b1c --- /dev/null +++ b/test/cases/verb-uniq/uniq-x-het/expout @@ -0,0 +1,6 @@ +color=yellow,shape=triangle +color=red,shape=square +color=red,shape=circle +color=purple,shape=triangle +color=yellow,shape=circle +color=purple,shape=square diff --git a/test/cases/verb-uniq/uniq-x-long/cmd b/test/cases/verb-uniq/uniq-x-long/cmd new file mode 100644 index 0000000000..bcdfe98e00 --- /dev/null +++ b/test/cases/verb-uniq/uniq-x-long/cmd @@ -0,0 +1 @@ +mlr --dkvp uniq -x flag,k,index,quantity,rate test/input/example-with-extra-keys.dkvp diff --git a/test/cases/verb-uniq/uniq-x-long/experr b/test/cases/verb-uniq/uniq-x-long/experr new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/cases/verb-uniq/uniq-x-long/expout b/test/cases/verb-uniq/uniq-x-long/expout new file mode 100644 index 0000000000..d5b3f26eb7 --- /dev/null +++ b/test/cases/verb-uniq/uniq-x-long/expout @@ -0,0 +1,7 @@ +color=yellow,shape=triangle +color=red,shape=square +color=red,shape=circle +color=purple,shape=triangle,extra=here +color=purple,shape=triangle +color=yellow,shape=circle +color=purple,shape=square diff --git a/test/cases/verb-uniq/uniq-x-short/cmd b/test/cases/verb-uniq/uniq-x-short/cmd new file mode 100644 index 0000000000..5c2f73021b --- /dev/null +++ b/test/cases/verb-uniq/uniq-x-short/cmd @@ -0,0 +1 @@ +mlr --dkvp uniq -x flag,k,index,quantity,rate test/input/example-with-missing-keys.dkvp diff --git a/test/cases/verb-uniq/uniq-x-short/experr b/test/cases/verb-uniq/uniq-x-short/experr new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/cases/verb-uniq/uniq-x-short/expout b/test/cases/verb-uniq/uniq-x-short/expout new file mode 100644 index 0000000000..b566d5536b --- /dev/null +++ b/test/cases/verb-uniq/uniq-x-short/expout @@ -0,0 +1,6 @@ +color=yellow,shape=triangle +color=red,shape=square +shape=circle +color=purple,shape=triangle +color=yellow,shape=circle +color=purple,shape=square