unittests: Fix linter errors

This commit is contained in:
ZyX
2017-03-11 23:48:16 +03:00
parent a54be846cf
commit 8ef6cfa6ac
4 changed files with 29 additions and 23 deletions

View File

@@ -72,6 +72,7 @@ describe('json_decode_string()', function()
end
itp('does not overflow in error messages', function()
local saved_p_enc = decode.p_enc
check_failure(']test', 1, 'E474: No container to close: ]')
check_failure('[}test', 2, 'E474: Closing list with curly bracket: }')
check_failure('{]test', 2,