diff options
author | lloydh <lloydh@e775cfb5-b74b-0410-aad5-5bebe4a96390> | 2007-11-11 20:31:50 +0000 |
---|---|---|
committer | lloydh <lloydh@e775cfb5-b74b-0410-aad5-5bebe4a96390> | 2007-11-11 20:31:50 +0000 |
commit | c9ea1f29f88f5fc39b7ec2242016307b82d70803 (patch) | |
tree | 3de56e2d0ab593726e8194fd6db3324508d30a67 /test/cases | |
parent | fbb53b5ed6331fa4c49de69249b4cbfbf5707929 (diff) | |
download | yajl-c9ea1f29f88f5fc39b7ec2242016307b82d70803.tar.gz |
add random test case of bad char in json string.
git-svn-id: http://yajl-c.googlecode.com/svn/yajl/trunk@78 e775cfb5-b74b-0410-aad5-5bebe4a96390
Diffstat (limited to 'test/cases')
-rw-r--r-- | test/cases/non_utf8_char_in_string.json | 1 | ||||
-rw-r--r-- | test/cases/non_utf8_char_in_string.json.gold | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/cases/non_utf8_char_in_string.json b/test/cases/non_utf8_char_in_string.json new file mode 100644 index 0000000..253a664 --- /dev/null +++ b/test/cases/non_utf8_char_in_string.json @@ -0,0 +1 @@ +{"CoreletAPIVersion":2,"CoreletType":"standalone","documentation":"A corelet that provides the capability to upload a folder’s contents into a user’s locker.","functions":[{"documentation":"Displays a dialog box that allows user to select a folder on the local system.","name":"ShowBrowseDialog","parameters":[{"documentation":"The callback function for results.","name":"callback","required":true,"type":"callback"}]},{"documentation":"Uploads all mp3 files in the folder provided.","name":"UploadFolder","parameters":[{"documentation":"The path to upload mp3 files from.","name":"path","required":true,"type":"string"},{"documentation":"The callback function for progress.","name":"callback","required":true,"type":"callback"}]},{"documentation":"Returns the server name to the current locker service.","name":"GetLockerService","parameters":[]},{"documentation":"Changes the name of the locker service.","name":"SetLockerService","parameters":[{"documentation":"The value of the locker service to set active.","name":"LockerService","required":true,"type":"string"}]},{"documentation":"Downloads locker files to the suggested folder.","name":"DownloadFile","parameters":[{"documentation":"The origin path of the locker file.","name":"path","required":true,"type":"string"},{"documentation":"The Window destination path of the locker file.","name":"destination","required":true,"type":"integer"},{"documentation":"The callback function for progress.","name":"callback","required":true,"type":"callback"}]}],"name":"LockerUploader","version":{"major":0,"micro":1,"minor":0},"versionString":"0.0.1"}
\ No newline at end of file diff --git a/test/cases/non_utf8_char_in_string.json.gold b/test/cases/non_utf8_char_in_string.json.gold new file mode 100644 index 0000000..095537f --- /dev/null +++ b/test/cases/non_utf8_char_in_string.json.gold @@ -0,0 +1,7 @@ +lexical error: invalid bytes in UTF8 string. +map open '{' +key: 'CoreletAPIVersion' +integer: 2 +key: 'CoreletType' +string: 'standalone' +key: 'documentation' |