From 042eb971b8c1af6d257f207d453b30afeed529b8 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sun, 10 Jun 2012 17:53:01 +0100 Subject: Add ${list:name} and ${nlist:string} expansion operators. --- test/scripts/0000-Basic/0002 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test/scripts') diff --git a/test/scripts/0000-Basic/0002 b/test/scripts/0000-Basic/0002 index 3b485ee97..41e0d0064 100644 --- a/test/scripts/0000-Basic/0002 +++ b/test/scripts/0000-Basic/0002 @@ -60,6 +60,21 @@ reduce: ${reduce{a:b:c}{+}{$value$item}} reduce: ${reduce {<, 1,2,3}{0}{${eval:$value+$item}}} reduce: ${reduce {3:0:9:4:6}{0}{${if >{$item}{$value}{$item}{$value}}}} +list: ${list:dlist} +list: ${list:+dlist} +list: ${list:hlist} +list: ${list:elist} +list: ${list:flist} +list: ${list:nolist} +list: ${list_d:dlist} +list: ${list_d:hlist} +list: ${list_z:dlist} + +nlist: ${nlist:a:b:c} +nlist: ${nlist:} +nlist: ${nlist:<;a;b;c} +nlist: ${nlist:${list:dlist}} + # Tests with iscntrl() and illegal separators map: ${map{<\n a\n\nb\nc}{'$item'}} -- cgit v1.2.3