From 812ebe6b8b9dfc53a5d476913741ed965e460a14 Mon Sep 17 00:00:00 2001 From: Mark Pulford Date: Tue, 10 May 2011 22:42:37 +0930 Subject: run_test_group(): Change helper functions to local --- tests/common.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/common.lua b/tests/common.lua index fd0e805..48b4197 100644 --- a/tests/common.lua +++ b/tests/common.lua @@ -229,13 +229,13 @@ function run_test(testname, func, input, should_work, output) end function run_test_group(testgroup, tests) - function run_config(configname, func) + local function run_config(configname, func) local success, msg = pcall(func) print(string.format("==> Config %s: %s", configname, msg)) print() end - function test_id(group, id) + local function test_id(group, id) return string.format("%s [%d]", group, id) end -- cgit v1.2.3-55-g6feb