mirror of
https://github.com/kikito/inspect.lua.git
synced 2024-12-15 14:34:21 +00:00
added more control characters to test case
This commit is contained in:
parent
ef3ae6b2d7
commit
864066c51e
@ -39,8 +39,8 @@ describe( 'inspect', function()
|
||||
end)
|
||||
|
||||
it('escapes zeroes and other control characters properly', function()
|
||||
assert.equals('"I have \\0 zeroes \\0000 and other \\1 control \\0010 characters"',
|
||||
inspect('I have \0 zeroes \0000 and other \1 control \0010 characters'))
|
||||
assert.equals('"I have \\0 zeroes \\0000 and other \\1 control \\0010 characters \\6 \\17 \\0279 \\31"',
|
||||
inspect('I have \0 zeroes \0000 and other \1 control \0010 characters \6 \17 \0279 \31'))
|
||||
end)
|
||||
|
||||
it('backslashes its backslashes', function()
|
||||
|
Loading…
Reference in New Issue
Block a user