commit | 21a9b5f8d1c302feb7765adbbfb27a4f76fd4589 | [log] [tgz] |
---|---|---|
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Wed Apr 01 02:42:59 2015 +0900 |
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Wed Apr 01 02:42:59 2015 +0900 |
tree | a5d7d2cf29388275ce401e9418fe11ebbbb39d17 | |
parent | 0439a3e77c76979454796992fa18b9448d576a5f [diff] [blame] |
Parse complex rules
diff --git a/parser_test.go b/parser_test.go index 140ae1e..bdc94fb 100644 --- a/parser_test.go +++ b/parser_test.go
@@ -47,8 +47,7 @@ } if got, want := args, tc.args; !reflect.DeepEqual(got, want) { t.Errorf(`parseExpr(%q)=%q, _, _; want %q, _, _`, tc.in, got, want) - } - if got, want := tc.in[rest:], tc.rest; got != want { + } else if got, want := tc.in[rest:], tc.rest; got != want { t.Errorf(`parseExpr(%q)=_, %q, _; want _, %q, _`, tc.in, got, want) } }