Generalize test
parent
f269ef8309
commit
53f941b8df
|
@ -2,7 +2,7 @@ USING: tools.test io.pipes io.unix.pipes io.encodings.utf8
|
||||||
io.encodings io namespaces sequences ;
|
io.encodings io namespaces sequences ;
|
||||||
IN: io.unix.pipes.tests
|
IN: io.unix.pipes.tests
|
||||||
|
|
||||||
[ { 0 0 } ] [ { "ls" "grep x" } run-pipeline ] unit-test
|
[ { 0 0 } ] [ { "ls" "grep ." } run-pipeline ] unit-test
|
||||||
|
|
||||||
[ { 0 f 0 } ] [
|
[ { 0 f 0 } ] [
|
||||||
{
|
{
|
||||||
|
@ -12,6 +12,6 @@ IN: io.unix.pipes.tests
|
||||||
output-stream [ utf8 <encoder> ] change
|
output-stream [ utf8 <encoder> ] change
|
||||||
input-stream get lines reverse [ print ] each f
|
input-stream get lines reverse [ print ] each f
|
||||||
]
|
]
|
||||||
"grep x"
|
"grep ."
|
||||||
} run-pipeline
|
} run-pipeline
|
||||||
] unit-test
|
] unit-test
|
||||||
|
|
Loading…
Reference in New Issue