mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-24 00:18:39 +00:00
UT absent-valued filter/cond
This commit is contained in:
parent
a20560e2ec
commit
fc728cccb8
3 changed files with 27 additions and 17 deletions
|
|
@ -9436,6 +9436,22 @@ b 5 - - false
|
|||
b - 6 - false
|
||||
b - - - false
|
||||
|
||||
mlr put filter @nonesuch ./reg_test/input/abixy
|
||||
|
||||
mlr put filter @nonesuch==true ./reg_test/input/abixy
|
||||
|
||||
mlr put filter $nonesuch==true ./reg_test/input/abixy
|
||||
|
||||
mlr put filter $nonesuch ./reg_test/input/abixy
|
||||
|
||||
mlr put -q @v=1; @nonesuch {emit @v} ./reg_test/input/abixy
|
||||
|
||||
mlr put -q @v=1; @nonesuch==true {emit @v} ./reg_test/input/abixy
|
||||
|
||||
mlr put -q @v=1; $nonesuch {emit @v} ./reg_test/input/abixy
|
||||
|
||||
mlr put -q @v=1; $nonesuch==true {emit @v} ./reg_test/input/abixy
|
||||
|
||||
|
||||
================================================================
|
||||
DSL TYPE-INFERENCE
|
||||
|
|
|
|||
|
|
@ -907,6 +907,16 @@ run_mlr --opprint put '$f=isnotnull($y)' $indir/nullvals.dkvp
|
|||
run_mlr --opprint put '$f=isnotnull($z)' $indir/nullvals.dkvp
|
||||
run_mlr --opprint put '$f=isnotnull($nosuch)' $indir/nullvals.dkvp
|
||||
|
||||
run_mlr put 'filter @nonesuch' $indir/abixy
|
||||
run_mlr put 'filter @nonesuch==true' $indir/abixy
|
||||
run_mlr put 'filter $nonesuch==true' $indir/abixy
|
||||
run_mlr put 'filter $nonesuch' $indir/abixy
|
||||
|
||||
run_mlr put -q '@v=1; @nonesuch {emit @v}' $indir/abixy
|
||||
run_mlr put -q '@v=1; @nonesuch==true {emit @v}' $indir/abixy
|
||||
run_mlr put -q '@v=1; $nonesuch {emit @v}' $indir/abixy
|
||||
run_mlr put -q '@v=1; $nonesuch==true {emit @v}' $indir/abixy
|
||||
|
||||
# ----------------------------------------------------------------
|
||||
announce DSL TYPE-INFERENCE
|
||||
|
||||
|
|
|
|||
18
c/todo.txt
18
c/todo.txt
|
|
@ -8,8 +8,7 @@ BUGFIXES
|
|||
================================================================
|
||||
TOP-OF-LIST SUMMARY
|
||||
|
||||
! entirely rework null-data section @ mld
|
||||
! manify?/mldify! mlr --print-type-arithmetic-info
|
||||
! entirely rework null-data section @ mld; manify?/mldify! mlr --print-type-arithmetic-info
|
||||
! valgrinds
|
||||
* UT behavior for null-valued filter / cond-block (see below)
|
||||
! do absent-identity for logical, bitwise, and exp? UTs for all regardless of what changes/doesn't.
|
||||
|
|
@ -53,21 +52,6 @@ TOP-OF-LIST SUMMARY
|
|||
- double-backslashing bug in sub/gsub
|
||||
- --from, & why: up-arrow & append then-chain
|
||||
|
||||
================================================================
|
||||
UT:
|
||||
|
||||
* define/test behavior for null-valued filter / cond-block
|
||||
|
||||
mlr put 'filter @nonesuch' ../data/small
|
||||
mlr put 'filter @nonesuch==true' ../data/small
|
||||
mlr put 'filter $nonesuch==true' ../data/small
|
||||
mlr put 'filter $nonesuch' ../data/small
|
||||
|
||||
mlr put -q '@v=1; @nonesuch { emit @v}' ../data/small
|
||||
mlr put -q '@v=1; @nonesuch==true { emit @v}' ../data/small
|
||||
mlr put -q '@v=1; $nonesuch { emit @v}' ../data/small
|
||||
mlr put -q '@v=1; $nonesuch==true { emit @v}' ../data/small
|
||||
|
||||
================================================================
|
||||
OOSVAR EXPERIMENTS:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue