From 5502f0e89648b4de978d70c5841c340830ec7943 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Thu, 4 Dec 2008 17:14:06 +0000 Subject: Convert tests back to old syntax to match rest of itools --- tests/exec.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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')"); } -- cgit v1.2.3