mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-25 08:53:55 +00:00
expanded-filter UT
This commit is contained in:
parent
9fde0b0bb0
commit
4357950de5
2 changed files with 42 additions and 0 deletions
|
|
@ -12455,6 +12455,32 @@ text="list", type=statement_list:
|
|||
text="continue", type=continue.
|
||||
|
||||
|
||||
---------------------------------------------------------------- expanded filter
|
||||
mlr --from ./reg_test/input/abixy filter
|
||||
begin {
|
||||
@avoid = 3
|
||||
}
|
||||
NR != @avoid
|
||||
|
||||
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
|
||||
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
|
||||
a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463
|
||||
a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729
|
||||
a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697
|
||||
a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694
|
||||
a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
|
||||
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
|
||||
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864
|
||||
|
||||
mlr --from ./reg_test/input/abixy filter -x
|
||||
begin {
|
||||
@avoid = 3
|
||||
}
|
||||
NR != @avoid
|
||||
|
||||
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
|
||||
|
||||
|
||||
================================================================
|
||||
DSL FUNCTIONAL TESTS
|
||||
|
||||
|
|
|
|||
|
|
@ -976,6 +976,22 @@ mention oosvars etc. in mlr filter
|
|||
mlr_expect_fail filter -v 'break'
|
||||
mlr_expect_fail filter -v 'continue'
|
||||
|
||||
mention expanded filter
|
||||
|
||||
run_mlr --from $indir/abixy filter '
|
||||
begin {
|
||||
@avoid = 3
|
||||
}
|
||||
NR != @avoid
|
||||
'
|
||||
|
||||
run_mlr --from $indir/abixy filter -x '
|
||||
begin {
|
||||
@avoid = 3
|
||||
}
|
||||
NR != @avoid
|
||||
'
|
||||
|
||||
# ----------------------------------------------------------------
|
||||
announce DSL FUNCTIONAL TESTS
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue