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
13d1cb0540
commit
aeb9811111
3 changed files with 26 additions and 4 deletions
|
|
@ -12488,6 +12488,24 @@ mlr --from ./reg_test/input/abixy filter
|
|||
|
||||
a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697
|
||||
|
||||
mlr --from ./reg_test/input/abixy filter
|
||||
subr s(n) {
|
||||
print "NR is ".n
|
||||
}
|
||||
call s(NR);
|
||||
false
|
||||
|
||||
NR is 1
|
||||
NR is 2
|
||||
NR is 3
|
||||
NR is 4
|
||||
NR is 5
|
||||
NR is 6
|
||||
NR is 7
|
||||
NR is 8
|
||||
NR is 9
|
||||
NR is 10
|
||||
|
||||
mlr --from ./reg_test/input/abixy filter
|
||||
local a = 5;
|
||||
local b = 7;
|
||||
|
|
|
|||
|
|
@ -999,6 +999,14 @@ run_mlr --from $indir/abixy filter '
|
|||
f(NR) == 5
|
||||
'
|
||||
|
||||
run_mlr --from $indir/abixy filter '
|
||||
subr s(n) {
|
||||
print "NR is ".n
|
||||
}
|
||||
call s(NR);
|
||||
false
|
||||
'
|
||||
|
||||
run_mlr --from $indir/abixy filter '
|
||||
local a = 5;
|
||||
local b = 7;
|
||||
|
|
|
|||
|
|
@ -21,14 +21,10 @@ PRE-RELEASE 4.6.0:
|
|||
----------------------------------------------------------------
|
||||
UT FOR 4.6.0:
|
||||
|
||||
* UT/mlh/mld func @ filter
|
||||
* disallow filter() inside filter
|
||||
* insist on final bare boolean; allow others before that (incl. begin/end) (many tests)
|
||||
* UT/mlh/mld -e, and mixed -f and -e, for filter/put
|
||||
* no begin/end/func/subr within subr
|
||||
* print/printn zary
|
||||
* no begin/end/func/subr within func
|
||||
* func no subr call
|
||||
* func no srec assignment x 3, no oosvar assignment x 2, no filter, no unset
|
||||
* func no tee, emitfx3; but allow print, dump.
|
||||
* disallow func/subr redefines
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue