From c03c527fd207b4ad8f5a8e0f4f2c176bd227c979 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy <roberto@inf.puc-rio.br> Date: Mon, 15 Feb 2021 13:31:45 -0300 Subject: Bug: 'string.concat' error message uses wrong format --- testes/strings.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'testes') diff --git a/testes/strings.lua b/testes/strings.lua index 2fa4a89f..61a06a25 100644 --- a/testes/strings.lua +++ b/testes/strings.lua @@ -361,6 +361,9 @@ assert(load("return 1\n--comment without ending EOL")() == 1) checkerror("table expected", table.concat, 3) +checkerror("at index " .. maxi, table.concat, {}, " ", maxi, maxi) +-- '%' escapes following minus signal +checkerror("at index %" .. mini, table.concat, {}, " ", mini, mini) assert(table.concat{} == "") assert(table.concat({}, 'x') == "") assert(table.concat({'\0', '\0\1', '\0\1\2'}, '.\0.') == "\0.\0.\0\1.\0.\0\1\2") -- cgit v1.2.3-55-g6feb