mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-25 17:04:01 +00:00
miller-in-place UT
This commit is contained in:
parent
15fa800e07
commit
484fd6a2b2
3 changed files with 27 additions and 2 deletions
|
|
@ -37992,6 +37992,18 @@ mlr cat then nothing ./reg_test/input/abixy ./reg_test/input/abixy
|
|||
mlr cat then nothing then cat ./reg_test/input/abixy
|
||||
|
||||
|
||||
================================================================
|
||||
IN-PLACE PROCESSING
|
||||
|
||||
mlr -I --opprint head -n 2 /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp1 /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp2
|
||||
|
||||
mlr -I --opprint head -n 2
|
||||
./reg_test/../../c/mlr: -I option (in-place operation) requires input files.
|
||||
|
||||
mlr -I --opprint -n head -n 2 /Users/kerl/pub_http_internet/miller-releases/miller-head/c/output-regtest/abixy.temp1
|
||||
./reg_test/../../c/mlr: -I option (in-place operation) requires input files.
|
||||
|
||||
|
||||
================================================================
|
||||
MAPPER TEE REDIRECTS
|
||||
|
||||
|
|
|
|||
|
|
@ -3820,6 +3820,20 @@ run_mlr tac then nothing $indir/abixy
|
|||
run_mlr cat then nothing $indir/abixy $indir/abixy
|
||||
run_mlr cat then nothing then cat $indir/abixy
|
||||
|
||||
# ----------------------------------------------------------------
|
||||
announce IN-PLACE PROCESSING
|
||||
|
||||
cp $indir/abixy $outdir/abixy.temp1
|
||||
cp $indir/abixy $outdir/abixy.temp2
|
||||
cat $outdir/abixy.temp1
|
||||
cat $outdir/abixy.temp2
|
||||
run_mlr -I --opprint head -n 2 $outdir/abixy.temp1 $outdir/abixy.temp2
|
||||
cat $outdir/abixy.temp1
|
||||
cat $outdir/abixy.temp2
|
||||
|
||||
mlr_expect_fail -I --opprint head -n 2 < $outdir/abixy.temp1
|
||||
mlr_expect_fail -I --opprint -n head -n 2 $outdir/abixy.temp1
|
||||
|
||||
# ----------------------------------------------------------------
|
||||
announce MAPPER TEE REDIRECTS
|
||||
|
||||
|
|
|
|||
|
|
@ -8,8 +8,7 @@ BUGFIXES
|
|||
|
||||
!! non-ephemeral logic permits references to out-of-scopes ?
|
||||
-> ensure either ephemeral-transfer, or final-copy, at assignment time
|
||||
|
||||
* mlr -I expect-fail case w/o files; -n
|
||||
-> ephemerals must live *only* in the eval-tree
|
||||
|
||||
* UT
|
||||
* cookbook
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue