Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(518)

Side by Side Diff: src/pkg/exp/template/lex_test.go

Issue 4671047: code review 4671047: exp/template: remove debugging dreg. (Closed)
Patch Set: diff -r d2d528550dc3 https://go.googlecode.com/hg/ Created 13 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Go Authors. All rights reserved. 1 // Copyright 2011 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 package template 5 package template
6 6
7 import ( 7 import (
8 "reflect" 8 "reflect"
9 "testing" 9 "testing"
10 ) 10 )
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 items = append(items, item) 133 items = append(items, item)
134 if item.typ == itemEOF || item.typ == itemError { 134 if item.typ == itemEOF || item.typ == itemError {
135 break 135 break
136 } 136 }
137 } 137 }
138 return 138 return
139 } 139 }
140 140
141 func TestLex(t *testing.T) { 141 func TestLex(t *testing.T) {
142 for _, test := range lexTests { 142 for _, test := range lexTests {
143 println(test.name)
144 items := collect(&test) 143 items := collect(&test)
145 if !reflect.DeepEqual(items, test.items) { 144 if !reflect.DeepEqual(items, test.items) {
146 t.Errorf("%s: got\n\t%v\nexpected\n\t%v", test.name, ite ms, test.items) 145 t.Errorf("%s: got\n\t%v\nexpected\n\t%v", test.name, ite ms, test.items)
147 } 146 }
148 } 147 }
149 } 148 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b