summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2008-12-04 17:14:06 +0000
committerChristian Schneider2008-12-04 17:14:06 +0000
commit5502f0e89648b4de978d70c5841c340830ec7943 (patch)
treecf01480bee379e1ef907075002045395129f6593
parentd3b2fdde765daae674bb086ceea8d92fcf4540bd (diff)
downloaditools-5502f0e89648b4de978d70c5841c340830ec7943.tar.gz
itools-5502f0e89648b4de978d70c5841c340830ec7943.tar.bz2
itools-5502f0e89648b4de978d70c5841c340830ec7943.zip
Convert tests back to old syntax to match rest of itools
-rwxr-xr-xtests/exec.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/exec.t b/tests/exec.t
index 5e021cb..28e77a5 100755
--- a/tests/exec.t
+++ b/tests/exec.t
@@ -6,7 +6,7 @@
require 'searchlib/search_test.class';
is(it::exec("echo gna"), "gna\n", "basic exec");
-is(it::exec("echo {arg}", 'arg' => 'gna'), "gna\n", "exec with argument");
+is(it::exec("echo {arg}", array('arg' => 'gna')), "gna\n", "exec with argument");
foreach (array("", "C", "de_CH", "de_CH.utf8") as $locale) {
setlocale(LC_ALL, $locale);
@@ -14,7 +14,7 @@ foreach (array("", "C", "de_CH", "de_CH.utf8") as $locale) {
if (it::match('utf8', $locale))
$arg = utf8_encode($arg);
is(it::exec("echo " . $arg), $arg . "\n", "exec with umlaut (locale '$locale')");
- is(it::exec("echo {arg}", 'arg' => $arg), $arg . "\n", "exec with argument and umlaut (locale '$locale')");
+ is(it::exec("echo {arg}", array('arg' => $arg)), $arg . "\n", "exec with argument and umlaut (locale '$locale')");
}