From 7ef973af86c070965a4d7c1caf3b13844c4c741b Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 6 Jun 2017 15:21:48 +0200 Subject: add filter(), cut(), askey() --- tests/it_pipe.t | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/it_pipe.t b/tests/it_pipe.t index e8fa4e8..93957b5 100755 --- a/tests/it_pipe.t +++ b/tests/it_pipe.t @@ -9,3 +9,5 @@ is(json_encode((new it_pipe(['data' => ["\t", "1\t2"]]))->csv()), '[{"fie is(json_encode((new it_pipe(['data' => ["a\tb", "1\t2"]]))->csv("c,d")), '[{"c":"1","d":"2"}]'); is(json_encode((new it_pipe(['data' => ["a\tb", "1\t2"]]))->csv(['forceschema' => "c,d"])), '[{"c":"1","d":"2"}]'); is(json_encode((new it_pipe(['data' => ["a b\tb", "1\t2"]]))->csv(['fixcolnames' => true])), '[{"a_b":"1","b":"2"}]'); + +is(json_encode((new it_pipe(['data' => "a\nb\n"]))->askey()), '{"a":true,"b":true}'); -- cgit v1.2.3