summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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')");
}