Unit Tests
- Added JSON samples to test the parser.
This commit is contained in:
44
test/json/facebook.json
Normal file
44
test/json/facebook.json
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"id": "X999_Y999",
|
||||
"from": {
|
||||
"name": "Tom Brady", "id": "X12"
|
||||
},
|
||||
"message": "Looking forward to 2010!",
|
||||
"actions": [
|
||||
{
|
||||
"name": "Comment",
|
||||
"link": "http://www.facebook.com/X999/posts/Y999"
|
||||
},
|
||||
{
|
||||
"name": "Like",
|
||||
"link": "http://www.facebook.com/X999/posts/Y999"
|
||||
}
|
||||
],
|
||||
"type": "status",
|
||||
"created_time": "2010-08-02T21:27:44+0000",
|
||||
"updated_time": "2010-08-02T21:27:44+0000"
|
||||
},
|
||||
{
|
||||
"id": "X998_Y998",
|
||||
"from": {
|
||||
"name": "Peyton Manning", "id": "X18"
|
||||
},
|
||||
"message": "Where's my contract?",
|
||||
"actions": [
|
||||
{
|
||||
"name": "Comment",
|
||||
"link": "http://www.facebook.com/X998/posts/Y998"
|
||||
},
|
||||
{
|
||||
"name": "Like",
|
||||
"link": "http://www.facebook.com/X998/posts/Y998"
|
||||
}
|
||||
],
|
||||
"type": "status",
|
||||
"created_time": "2010-08-02T21:27:44+0000",
|
||||
"updated_time": "2010-08-02T21:27:44+0000"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user