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

Side by Side Diff: src/pkg/ebnf/ebnf_test.go

Issue 163085: code review 163085: move ReadFile, WriteFile, and ReadDir into a separate i... (Closed)
Patch Set: code review 163085: move ReadFile, WriteFile, and ReadDir into a separate i... Created 15 years, 4 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 | « src/pkg/debug/proc/proc_linux.go ('k') | src/pkg/encoding/ascii85/ascii85_test.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 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 ebnf 5 package ebnf
6 6
7 import ( 7 import (
8 » "io"; 8 » "io/ioutil";
9 "strings"; 9 "strings";
10 "testing"; 10 "testing";
11 ) 11 )
12 12
13 13
14 var grammars = []string{ 14 var grammars = []string{
15 `Program = . 15 `Program = .
16 `, 16 `,
17 17
18 `Program = foo . 18 `Program = foo .
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 } 58 }
59 59
60 60
61 var files = []string{ 61 var files = []string{
62 // TODO(gri) add some test files 62 // TODO(gri) add some test files
63 } 63 }
64 64
65 65
66 func TestFiles(t *testing.T) { 66 func TestFiles(t *testing.T) {
67 for _, filename := range files { 67 for _, filename := range files {
68 » » src, err := io.ReadFile(filename); 68 » » src, err := ioutil.ReadFile(filename);
69 if err != nil { 69 if err != nil {
70 t.Fatal(err) 70 t.Fatal(err)
71 } 71 }
72 check(t, filename, src); 72 check(t, filename, src);
73 } 73 }
74 } 74 }
OLDNEW
« no previous file with comments | « src/pkg/debug/proc/proc_linux.go ('k') | src/pkg/encoding/ascii85/ascii85_test.go » ('j') | no next file with comments »

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