Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update tests.lua
Fixed unit test
  • Loading branch information
SoniEx2 committed Dec 8, 2014
commit 57f0eed445badcbbf2086e43290a814726fa3cf5
4 changes: 2 additions & 2 deletions json4lua/examples/tests.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function testJSON4Lua()

s = [["Test\u00A7\\"]]
r,e = json._decode_scanString(s,1)
assert(r=="Test\xC2\xA7\\" and e==9)
assert(r=="Test\194\167\\\"" and e==9)
print(s,r)

-- Test decode_scanNumber
Expand Down Expand Up @@ -164,7 +164,7 @@ function testJSON4Lua()

s = [["Test\u00A7\\\""]]
r,e = json.decode(s)
assert(r=="Test\xC2\xA7\\\"", r)
assert(r=="Test\194\167\\\"", string.format("%q expected, got %q", "Test\194\167\\\"", r))
print(s,r)

-- Test decode_scanObject
Expand Down