Skip to content

Commit

Permalink
Merge pull request #21 from hannesg/empty_arrays
Browse files Browse the repository at this point in the history
Added some testcases for an empty list and empty associative arrays
  • Loading branch information
mnot committed Sep 5, 2012
2 parents dfc9b85 + 9886b05 commit 73a3b75
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions extended-tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,19 @@
"/albums/person?fields=name,id,picture&token=12345"]
]
]
},
"Additional Examples 3: Empty Variables":{
"variables" : {
"empty_list" : [],
"empty_assoc" : {}
},
"testcases":[
[ "{/empty_list}", [ "" ] ],
[ "{/empty_list*}", [ "" ] ],
[ "{?empty_list}", [ "?empty_list="] ],
[ "{?empty_list*}", [ "" ] ],
[ "{?empty_assoc}", [ "?empty_assoc=" ] ],
[ "{?empty_assoc*}", [ "" ] ]
]
}
}

0 comments on commit 73a3b75

Please sign in to comment.