mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-25 08:53:55 +00:00
seqgen UT
This commit is contained in:
parent
bee02317ae
commit
e4bb5c78c7
3 changed files with 49 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue