aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/ast/parser_test.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-08-18 11:14:20 +0200
committerDmitry Vyukov <dvyukov@google.com>2017-08-18 11:26:50 +0200
commit41bbf437e1e843fd3ab5603ec4c2eb4a42dca76f (patch)
treee29cacc7839a64866af3d3229aa7ec035d8081ba /pkg/ast/parser_test.go
parent5b461e7ecd9556f9a54e1a5afc3ef962bc5cd11e (diff)
Makefile: enforce formatting of sys files in presubmit
Diffstat (limited to 'pkg/ast/parser_test.go')
-rw-r--r--pkg/ast/parser_test.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/pkg/ast/parser_test.go b/pkg/ast/parser_test.go
index 521078805..43587d7a3 100644
--- a/pkg/ast/parser_test.go
+++ b/pkg/ast/parser_test.go
@@ -42,12 +42,10 @@ func TestParseAll(t *testing.T) {
if len(top) != len(top2) {
t.Fatalf("formatting number of top level decls: %v/%v", len(top), len(top2))
}
- if false {
- // While sys files are not formatted, formatting in fact changes it.
- for i := range top {
- if !reflect.DeepEqual(top[i], top2[i]) {
- t.Fatalf("formatting changed code:\n%#v\nvs:\n%#v", top[i], top2[i])
- }
+ // While sys files are not formatted, formatting in fact changes it.
+ for i := range top {
+ if !reflect.DeepEqual(top[i], top2[i]) {
+ t.Fatalf("formatting changed code:\n%#v\nvs:\n%#v", top[i], top2[i])
}
}
}