From 464a1482a569cd46e3da0cfadee479669e994c04 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 8 Jun 2011 12:23:18 +0000 Subject: some quotevalue tests --- tests/exec.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/exec.t b/tests/exec.t index 941e0c0..689bd26 100755 --- a/tests/exec.t +++ b/tests/exec.t @@ -18,4 +18,6 @@ foreach (array("", "C", "de_CH", "de_CH.utf8") as $locale) { is(it::exec("echo {arg}", array('arg' => $arg)), $arg . "\n", "exec with argument and umlaut (locale '$locale')"); } - +is(it::_exec_quotevalue(""), "''", "empty arg needs quotes"); +is(it::_exec_quotevalue("*"), "'*'", "special chars need quotes"); +is(it::_exec_quotevalue("Aabcdef0123456789"), "Aabcdef0123456789", "simple case. tel:debug_getdata needs unquoted vals"); -- cgit v1.2.3