diff options
author | Christian Schneider | 2008-12-04 17:14:06 +0000 |
---|---|---|
committer | Christian Schneider | 2008-12-04 17:14:06 +0000 |
commit | 5502f0e89648b4de978d70c5841c340830ec7943 (patch) | |
tree | cf01480bee379e1ef907075002045395129f6593 | |
parent | d3b2fdde765daae674bb086ceea8d92fcf4540bd (diff) | |
download | itools-5502f0e89648b4de978d70c5841c340830ec7943.tar.gz itools-5502f0e89648b4de978d70c5841c340830ec7943.tar.bz2 itools-5502f0e89648b4de978d70c5841c340830ec7943.zip |
Convert tests back to old syntax to match rest of itools
-rwxr-xr-x | tests/exec.t | 4 |
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')"); } |