From c85dc033dc58b06f1fc3cef6c2667f6516ac12b4 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 27 Apr 2012 11:51:55 +0200 Subject: add $$reverse() function returns the list with the order of the elements reversed. one can easily implement this with existing functions, but this is way faster and more readable. Change-Id: I12d306eb9fe58fc332622274ea6b658192529491 Reviewed-by: Joerg Bornemann --- tests/auto/tools/qmake/testdata/functions/functions.pro | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/auto/tools/qmake/testdata/functions/functions.pro b/tests/auto/tools/qmake/testdata/functions/functions.pro index 5fcfd8c1ce..9ec2ffe93f 100644 --- a/tests/auto/tools/qmake/testdata/functions/functions.pro +++ b/tests/auto/tools/qmake/testdata/functions/functions.pro @@ -144,3 +144,5 @@ win32: \ else: \ out = "'some nasty\" path\\'" testReplace($$shell_quote($$in), $$out, "shell_quote") + +testReplace($$reverse($$list(one two three)), three two one, "reverse") -- cgit v1.2.3