From 74d2216da2f2b162d0f17668dab87ef8252f158a Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Thu, 13 Mar 2014 00:27:49 -0500 Subject: [PATCH] Test `arrays` and friend filters --- tests/all.test | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/tests/all.test b/tests/all.test index 9c244d54..92a8b0e8 100644 --- a/tests/all.test +++ b/tests/all.test @@ -797,3 +797,31 @@ map([1,2][0:.]) {"a": {"b": 1}, "c": {"d": 2}, "e": 5} * . {"a": {"b": 2}, "c": {"d": 3, "f": 9}} {"a": {"b": 2}, "c": {"d": 3, "f": 9}, "e": 5} + +[.[]|arrays] +[1,2,"foo",[],[3,[]],{},true,false,null] +[[],[3,[]]] + +[.[]|objects] +[1,2,"foo",[],[3,[]],{},true,false,null] +[{}] + +[.[]|iterables] +[1,2,"foo",[],[3,[]],{},true,false,null] +[[],[3,[]],{}] + +[.[]|scalars] +[1,2,"foo",[],[3,[]],{},true,false,null] +[1,2,"foo",true,false,null] + +[.[]|values] +[1,2,"foo",[],[3,[]],{},true,false,null] +[1,2,"foo",[],[3,[]],{},true,false] + +[.[]|booleans] +[1,2,"foo",[],[3,[]],{},true,false,null] +[true,false] + +[.[]|nulls] +[1,2,"foo",[],[3,[]],{},true,false,null] +[null]