From 4a8bb4e3021de3437f72a4246768ac704ae51132 Mon Sep 17 00:00:00 2001 From: Simon Eisenmann Date: Mon, 7 Apr 2014 14:50:55 +0200 Subject: Always create readable JSON strings. http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api#pretty-print-gzip) --- core_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core_test.go') diff --git a/core_test.go b/core_test.go index 2438b98..8027bfe 100644 --- a/core_test.go +++ b/core_test.go @@ -27,7 +27,7 @@ func TestBasicGet(t *testing.T) { t.Error(err) } body, _ := ioutil.ReadAll(resp.Body) - if string(body) != `{"items":["item1","item2"]}` { + if string(body) != "{\n \"items\": [\n \"item1\",\n \"item2\"\n ]\n}" { t.Error("Not equal.") } } -- cgit