From 2fae04dacfaece83664d3b7d7b53fdf7c1209b29 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 31 Jul 2014 18:47:23 -0700 Subject: [PATCH] passing tests --- parse_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/parse_test.go b/parse_test.go index 330af9b..d1e6731 100644 --- a/parse_test.go +++ b/parse_test.go @@ -118,8 +118,10 @@ func TestParse(t *testing.T) { t.Fatalf("err: %s", err) } - if !reflect.DeepEqual(actual, tc.Output) { - t.Fatalf("Input: %s\n\nBad: %#v", tc.Input, actual) + if tc.Output != nil { + if !reflect.DeepEqual(actual, tc.Output) { + t.Fatalf("Input: %s\n\nBad: %#v", tc.Input, actual) + } } } }