]> gitweb.factorcode.org Git - factor.git/blob - extra/io/unix/pipes/pipes-tests.factor
Merge branch 'master' of git://factorcode.org/git/factor
[factor.git] / extra / io / unix / pipes / pipes-tests.factor
1 USING: tools.test io.pipes io.unix.pipes io.encodings.utf8
2 io.encodings io namespaces sequences ;
3 IN: io.unix.pipes.tests
4
5 [ { 0 0 } ] [ { "ls" "grep ." } run-pipeline ] unit-test
6
7 [ { 0 f 0 } ] [
8     {
9         "ls"
10         [
11             input-stream [ utf8 <decoder> ] change
12             output-stream [ utf8 <encoder> ] change
13             input-stream get lines reverse [ print ] each f
14         ]
15         "grep ."
16     } run-pipeline
17 ] unit-test