diff options
author | Urban Müller | 2011-06-08 12:23:18 +0000 |
---|---|---|
committer | Urban Müller | 2011-06-08 12:23:18 +0000 |
commit | 464a1482a569cd46e3da0cfadee479669e994c04 (patch) | |
tree | a8aaf9f199ee6756d35de29801ce7a09e1cb16c3 /tests | |
parent | 53f73c542ed4fd6a3ee4d3783d1e10723360e17c (diff) | |
download | itools-464a1482a569cd46e3da0cfadee479669e994c04.tar.gz itools-464a1482a569cd46e3da0cfadee479669e994c04.tar.bz2 itools-464a1482a569cd46e3da0cfadee479669e994c04.zip |
some quotevalue tests
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/exec.t | 4 |
1 files changed, 3 insertions, 1 deletions
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"); |