summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/it_pipe.t11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/it_pipe.t b/test/it_pipe.t
index f6b069a..79c27b2 100755
--- a/test/it_pipe.t
+++ b/test/it_pipe.t
@@ -2,11 +2,12 @@
<?php
# it::cat frontend
-is(it::cat("test/it_pipe.t")->lines[1], "<?php");
-is(it::cat(['data' => "foo"])->lines(), ["foo"]);
-is(it::pipe('echo {x}', ['x' => "foo"])->lines(), ["foo"]);
-is(it::pipe('echo {0}{1}', "f", "oo")->lines(), ["foo"]);
-is(it::pipe(['foo'])->lines(), ["foo"]);
+is(it::cat("test/it_pipe.t")->lines[1], "<?php");
+is(it::cat(['data' => "foo"])->lines(), ["foo"]);
+is(it::pipe('echo {x}', ['x' => "foo"])->lines(), ["foo"]);
+is(it::pipe('echo {0}{1}', "f", "oo")->lines(), ["foo"]);
+is(it::pipe('echo {f}', ['f' => 1, 'f' => 2])->lines(), [2]);
+is(it::pipe(['foo'])->lines(), ["foo"]);
# csv()
is(json_encode((new it_pipe(['data' => ["a\tb", "1\t2"]]))->csv()), '[{"a":"1","b":"2"}]');