seqgen UT

This commit is contained in:
John Kerl 2016-09-25 23:12:32 -04:00
parent bee02317ae
commit e4bb5c78c7
3 changed files with 49 additions and 1 deletions

View file

@ -3186,6 +3186,44 @@ a=4,y=d=70
b=5,y=d=70
================================================================
SEQGEN
mlr seqgen --start 1 --stop 5 --step 1
i=1
i=2
i=3
i=4
i=5
mlr seqgen --start 1 --stop 5 --step 2
i=1
i=3
i=5
mlr seqgen --start 1 --stop 1 --step 1 -f a
a=1
mlr seqgen --start 5 --stop 1 --step 1 -f b
mlr seqgen --start 5 --stop 1 --step -1 -f c
c=5
c=4
c=3
c=2
c=1
mlr seqgen --start 5 --stop 5 --step -1 -f d
d=5
mlr --from ./reg_test/input/abixy cat then seqgen --start 1 --stop 5
i=1
i=2
i=3
i=4
i=5
================================================================
STATS

View file

@ -489,6 +489,17 @@ run_mlr nest --explode --pairs --across-fields -f x --nested-fs pipe --nested-
run_mlr nest --explode --pairs --across-records -f x $indir/nest-explode.dkvp
run_mlr nest --explode --pairs --across-records -f x --nested-fs pipe --nested-ps = $indir/nest-explode-vary-fs-ps.dkvp
# ----------------------------------------------------------------
announce SEQGEN
run_mlr seqgen --start 1 --stop 5 --step 1
run_mlr seqgen --start 1 --stop 5 --step 2
run_mlr seqgen --start 1 --stop 1 --step 1 -f a
run_mlr seqgen --start 5 --stop 1 --step 1 -f b
run_mlr seqgen --start 5 --stop 1 --step -1 -f c
run_mlr seqgen --start 5 --stop 5 --step -1 -f d
run_mlr --from $indir/abixy cat then seqgen --start 1 --stop 5
# ----------------------------------------------------------------
announce STATS

View file

@ -36,7 +36,6 @@ UT FOR 4.6.0:
* locals in all curly-braced control structures; top-level locals; scope, extent, freeing.
* distinct locals within if/elseif/.../else
* mlr --opprint --from s put -v '$o1 = a; local a=1000+NR; $o2 = a; a=2000+NR; $o3 = a'
* seqgen
----------------------------------------------------------------
DOC FOR 4.6.0: