diff --git a/go/cases-to-do.txt b/go/cases-to-do.txt index dad90a0e4..3a618b643 100644 --- a/go/cases-to-do.txt +++ b/go/cases-to-do.txt @@ -1,8 +1,6 @@ ================================================================ BUG: -rrv ./reg-test/cases/case-c-cat.sh - rrv ./reg-test/cases/case-c-altkv.sh rrv ./reg-test/cases/case-c-dsl-argpass-typedecl.sh rrv ./reg-test/cases/case-c-dsl-extended-typeof.sh diff --git a/go/reg-test/cases/case-c-cat.sh b/go/reg-test/cases/case-cat.sh similarity index 65% rename from go/reg-test/cases/case-c-cat.sh rename to go/reg-test/cases/case-cat.sh index dc46d394e..ba5b72d13 100644 --- a/go/reg-test/cases/case-c-cat.sh +++ b/go/reg-test/cases/case-cat.sh @@ -1,5 +1,3 @@ -# Intended to be invoked by "." from reg-test/run - run_mlr cat $indir/abixy run_mlr cat /dev/null @@ -14,3 +12,8 @@ run_mlr cat -g a,b -N counter $indir/abixy-het echo a,b,c,d,e,f | run_mlr cat echo a,b,c,d,e,f,g | run_mlr cat + +run_mlr --opprint cat $indir/s.dkvp +run_mlr --opprint cat -n $indir/s.dkvp +run_mlr --opprint cat -n -g a $indir/s.dkvp +run_mlr --opprint cat -n -g a,b $indir/s.dkvp diff --git a/go/reg-test/cases/case-go-cat.sh b/go/reg-test/cases/case-go-cat.sh deleted file mode 100644 index 04f274a02..000000000 --- a/go/reg-test/cases/case-go-cat.sh +++ /dev/null @@ -1,4 +0,0 @@ -run_mlr --opprint cat $indir/s.dkvp -run_mlr --opprint cat -n $indir/s.dkvp -run_mlr --opprint cat -n -g a $indir/s.dkvp -run_mlr --opprint cat -n -g a,b $indir/s.dkvp diff --git a/go/reg-test/expected/case-c-cat.sh.out b/go/reg-test/expected/case-cat.sh.out similarity index 80% rename from go/reg-test/expected/case-c-cat.sh.out rename to go/reg-test/expected/case-cat.sh.out index fcb080e63..1de117e38 100644 --- a/go/reg-test/expected/case-c-cat.sh.out +++ b/go/reg-test/expected/case-cat.sh.out @@ -91,3 +91,31 @@ mlr cat mlr cat 1=a,2=b,3=c,4=d,5=e,6=f,7=g +mlr --opprint cat ./reg-test/input/s.dkvp +a b i x y +pan pan 1 0.3467901443380824 0.7268028627434533 +eks pan 2 0.7586799647899636 0.5221511083334797 +wye wye 3 0.20460330576630303 0.33831852551664776 +eks wye 4 0.38139939387114097 0.13418874328430463 + +mlr --opprint cat -n ./reg-test/input/s.dkvp +n a b i x y +1 pan pan 1 0.3467901443380824 0.7268028627434533 +2 eks pan 2 0.7586799647899636 0.5221511083334797 +3 wye wye 3 0.20460330576630303 0.33831852551664776 +4 eks wye 4 0.38139939387114097 0.13418874328430463 + +mlr --opprint cat -n -g a ./reg-test/input/s.dkvp +n a b i x y +1 pan pan 1 0.3467901443380824 0.7268028627434533 +1 eks pan 2 0.7586799647899636 0.5221511083334797 +1 wye wye 3 0.20460330576630303 0.33831852551664776 +2 eks wye 4 0.38139939387114097 0.13418874328430463 + +mlr --opprint cat -n -g a,b ./reg-test/input/s.dkvp +n a b i x y +1 pan pan 1 0.3467901443380824 0.7268028627434533 +1 eks pan 2 0.7586799647899636 0.5221511083334797 +1 wye wye 3 0.20460330576630303 0.33831852551664776 +1 eks wye 4 0.38139939387114097 0.13418874328430463 + diff --git a/go/reg-test/expected/case-go-cat.sh.err b/go/reg-test/expected/case-go-cat.sh.err deleted file mode 100644 index e69de29bb..000000000 diff --git a/go/reg-test/expected/case-go-cat.sh.out b/go/reg-test/expected/case-go-cat.sh.out deleted file mode 100644 index 884a6cf50..000000000 --- a/go/reg-test/expected/case-go-cat.sh.out +++ /dev/null @@ -1,29 +0,0 @@ - -mlr --opprint cat ./reg-test/input/s.dkvp -a b i x y -pan pan 1 0.3467901443380824 0.7268028627434533 -eks pan 2 0.7586799647899636 0.5221511083334797 -wye wye 3 0.20460330576630303 0.33831852551664776 -eks wye 4 0.38139939387114097 0.13418874328430463 - -mlr --opprint cat -n ./reg-test/input/s.dkvp -n a b i x y -1 pan pan 1 0.3467901443380824 0.7268028627434533 -2 eks pan 2 0.7586799647899636 0.5221511083334797 -3 wye wye 3 0.20460330576630303 0.33831852551664776 -4 eks wye 4 0.38139939387114097 0.13418874328430463 - -mlr --opprint cat -n -g a ./reg-test/input/s.dkvp -n a b i x y -1 pan pan 1 0.3467901443380824 0.7268028627434533 -1 eks pan 2 0.7586799647899636 0.5221511083334797 -1 wye wye 3 0.20460330576630303 0.33831852551664776 -2 eks wye 4 0.38139939387114097 0.13418874328430463 - -mlr --opprint cat -n -g a,b ./reg-test/input/s.dkvp -n a b i x y -1 pan pan 1 0.3467901443380824 0.7268028627434533 -1 eks pan 2 0.7586799647899636 0.5221511083334797 -1 wye wye 3 0.20460330576630303 0.33831852551664776 -1 eks wye 4 0.38139939387114097 0.13418874328430463 -