Skip to content

Commit

Permalink
unit-test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Dec 23, 2023
1 parent c36bd09 commit 5a4d94a
Show file tree
Hide file tree
Showing 24 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/cases/verb-uniq/uniq-c-x-change/cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mlr --dkvp uniq -c -x flag,k,index,quantity,rate test/input/example-with-changed-keys.dkvp
Empty file.
7 changes: 7 additions & 0 deletions test/cases/verb-uniq/uniq-c-x-change/expout
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions test/cases/verb-uniq/uniq-c-x-het/cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mlr --dkvp uniq -c -x flag,k,index,quantity,rate test/input/example.dkvp
Empty file.
6 changes: 6 additions & 0 deletions test/cases/verb-uniq/uniq-c-x-het/expout
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions test/cases/verb-uniq/uniq-c-x-long/cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mlr --dkvp uniq -c -x flag,k,index,quantity,rate test/input/example-with-extra-keys.dkvp
Empty file.
7 changes: 7 additions & 0 deletions test/cases/verb-uniq/uniq-c-x-long/expout
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions test/cases/verb-uniq/uniq-c-x-short/cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mlr --dkvp uniq -c -x flag,k,index,quantity,rate test/input/example-with-missing-keys.dkvp
Empty file.
6 changes: 6 additions & 0 deletions test/cases/verb-uniq/uniq-c-x-short/expout
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions test/cases/verb-uniq/uniq-x-change/cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mlr --dkvp uniq -x flag,k,index,quantity,rate test/input/example-with-changed-keys.dkvp
Empty file.
7 changes: 7 additions & 0 deletions test/cases/verb-uniq/uniq-x-change/expout
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions test/cases/verb-uniq/uniq-x-het/cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mlr --dkvp uniq -x flag,k,index,quantity,rate test/input/example.dkvp
Empty file.
6 changes: 6 additions & 0 deletions test/cases/verb-uniq/uniq-x-het/expout
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions test/cases/verb-uniq/uniq-x-long/cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mlr --dkvp uniq -x flag,k,index,quantity,rate test/input/example-with-extra-keys.dkvp
Empty file.
7 changes: 7 additions & 0 deletions test/cases/verb-uniq/uniq-x-long/expout
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions test/cases/verb-uniq/uniq-x-short/cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mlr --dkvp uniq -x flag,k,index,quantity,rate test/input/example-with-missing-keys.dkvp
Empty file.
6 changes: 6 additions & 0 deletions test/cases/verb-uniq/uniq-x-short/expout
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5a4d94a

Please sign in to comment.