diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-02-15 13:31:45 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-02-15 13:31:45 -0300 |
| commit | c03c527fd207b4ad8f5a8e0f4f2c176bd227c979 (patch) | |
| tree | 85f5b692d3e6818ab4bdd21765658c8f0b1fc44b /testes | |
| parent | 38cc7d40a4bcb89314d212fdffd2ca8deebc3cb7 (diff) | |
| download | lua-c03c527fd207b4ad8f5a8e0f4f2c176bd227c979.tar.gz lua-c03c527fd207b4ad8f5a8e0f4f2c176bd227c979.tar.bz2 lua-c03c527fd207b4ad8f5a8e0f4f2c176bd227c979.zip | |
Bug: 'string.concat' error message uses wrong format
Diffstat (limited to 'testes')
| -rw-r--r-- | testes/strings.lua | 3 |
1 files changed, 3 insertions, 0 deletions
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) | |||
| 361 | 361 | ||
| 362 | 362 | ||
| 363 | checkerror("table expected", table.concat, 3) | 363 | checkerror("table expected", table.concat, 3) |
| 364 | checkerror("at index " .. maxi, table.concat, {}, " ", maxi, maxi) | ||
| 365 | -- '%' escapes following minus signal | ||
| 366 | checkerror("at index %" .. mini, table.concat, {}, " ", mini, mini) | ||
| 364 | assert(table.concat{} == "") | 367 | assert(table.concat{} == "") |
| 365 | assert(table.concat({}, 'x') == "") | 368 | assert(table.concat({}, 'x') == "") |
| 366 | assert(table.concat({'\0', '\0\1', '\0\1\2'}, '.\0.') == "\0.\0.\0\1.\0.\0\1\2") | 369 | assert(table.concat({'\0', '\0\1', '\0\1\2'}, '.\0.') == "\0.\0.\0\1.\0.\0\1\2") |
