summaryrefslogtreecommitdiff
path: root/tests/it_pipe.t
diff options
context:
space:
mode:
authorUrban Müller2017-06-06 15:21:48 +0200
committerUrban Müller2017-06-06 15:21:48 +0200
commit7ef973af86c070965a4d7c1caf3b13844c4c741b (patch)
treeb8ce39c6924ec2b895a639a3a0972b4a4da4726a /tests/it_pipe.t
parent9e266afd380229e578c1b4dc2e32b5506dd99e57 (diff)
downloaditools-7ef973af86c070965a4d7c1caf3b13844c4c741b.tar.gz
itools-7ef973af86c070965a4d7c1caf3b13844c4c741b.tar.bz2
itools-7ef973af86c070965a4d7c1caf3b13844c4c741b.zip
add filter(), cut(), askey()
Diffstat (limited to 'tests/it_pipe.t')
-rwxr-xr-xtests/it_pipe.t2
1 files changed, 2 insertions, 0 deletions
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}');