Add test for semantics from #21

This commit is contained in:
Barak Michener 2014-06-29 21:22:59 -04:00
parent 18c4c555b5
commit 3adfe96ff3

View file

@ -176,6 +176,18 @@ func TestGetCool(t *testing.T) {
runAndTestQuery(query, expected, t)
}
func TestNullSemantics(t *testing.T) {
query := `
[{"id": "cool", "status": null}]
`
expected := `
[
{"id": "cool", "status": null}
]
`
runAndTestQuery(query, expected, t)
}
func TestGetFollowsList(t *testing.T) {
query := `
[{"id": "C", "follows": []}]