diff options
| author | Mark Pulford <mark@kyne.com.au> | 2011-05-10 22:42:37 +0930 |
|---|---|---|
| committer | Mark Pulford <mark@kyne.com.au> | 2011-05-10 22:42:37 +0930 |
| commit | 812ebe6b8b9dfc53a5d476913741ed965e460a14 (patch) | |
| tree | be68a97cda0fc537bf80198c1574b80ca36ce000 | |
| parent | 126470cc7b6c2314c02805e4d00afe04b6b00312 (diff) | |
| download | lua-cjson-812ebe6b8b9dfc53a5d476913741ed965e460a14.tar.gz lua-cjson-812ebe6b8b9dfc53a5d476913741ed965e460a14.tar.bz2 lua-cjson-812ebe6b8b9dfc53a5d476913741ed965e460a14.zip | |
run_test_group(): Change helper functions to local
Diffstat (limited to '')
| -rw-r--r-- | tests/common.lua | 4 |
1 files 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) | |||
| 229 | end | 229 | end |
| 230 | 230 | ||
| 231 | function run_test_group(testgroup, tests) | 231 | function run_test_group(testgroup, tests) |
| 232 | function run_config(configname, func) | 232 | local function run_config(configname, func) |
| 233 | local success, msg = pcall(func) | 233 | local success, msg = pcall(func) |
| 234 | print(string.format("==> Config %s: %s", configname, msg)) | 234 | print(string.format("==> Config %s: %s", configname, msg)) |
| 235 | print() | 235 | print() |
| 236 | end | 236 | end |
| 237 | 237 | ||
| 238 | function test_id(group, id) | 238 | local function test_id(group, id) |
| 239 | return string.format("%s [%d]", group, id) | 239 | return string.format("%s [%d]", group, id) |
| 240 | end | 240 | end |
| 241 | 241 | ||
