Browse files

make the Chinese stringify result readable.

  • Loading branch information...
1 parent bcc7bc7 commit 20e5ecb1ba292f6d3416c47f5d9d6f8800d3294f @terryyin terryyin committed Jun 26, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 tests/json.txt
@@ -109,6 +109,11 @@ Stringify Complex Object
Should Be Equal As Strings ${json_string} {"a": "1", "b": "12", "names": ["First Name", "Family Name", "Email"]}
+Stringify Data With Chinese String
+ Set Test Variable ${data} 中
+ ${json_string}= Stringify JSON ${data}
+ Should Be Equal As Strings ${json_string} "${data}"
Get Json Value In Chinese OK
Set Test Variable ${chinese} "中"
${result}= Get Json Value {"foo":${chinese}} /foo

0 comments on commit 20e5ecb

Please sign in to comment.