diff options
Diffstat (limited to 'testes/pm.lua')
-rw-r--r-- | testes/pm.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testes/pm.lua b/testes/pm.lua index ab19eb5d..1700ca2c 100644 --- a/testes/pm.lua +++ b/testes/pm.lua | |||
@@ -6,6 +6,8 @@ | |||
6 | 6 | ||
7 | print('testing pattern matching') | 7 | print('testing pattern matching') |
8 | 8 | ||
9 | global * <const> | ||
10 | |||
9 | local function checkerror (msg, f, ...) | 11 | local function checkerror (msg, f, ...) |
10 | local s, err = pcall(f, ...) | 12 | local s, err = pcall(f, ...) |
11 | assert(not s and string.find(err, msg)) | 13 | assert(not s and string.find(err, msg)) |