mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Unit Tests
- Added JSON samples to test the parser.
This commit is contained in:
parent
df1920d75c
commit
f669b5f56f
22 changed files with 756 additions and 8 deletions
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"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue