From c3b2d0515f7631fa4ffd693ef17bbb061064b260 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 18 Jul 2023 19:33:59 +0200 Subject: more concise arg merging --- test/it_pipe.t | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'test') 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 @@ lines[1], " "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], " "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"}]'); -- cgit v1.2.3