mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 08:38:14 +01:00
Consistently use a and t for ast and token
This commit is contained in:
1 parent
bdc47bd6e2
commit
f6159a1c95
5 files changed
+49
-45
No files matched your search
@@ -18,7 +18,8 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/google/wuffs/lang/parse"
|
||||
"github.com/google/wuffs/lang/token"
|
||||
|
||||
t "github.com/google/wuffs/lang/token"
|
||||
)
|
||||
|
||||
func TestString(tt *testing.T) {
|
||||
@@ -70,9 +71,9 @@ func TestString(tt *testing.T) {
|
||||
"x as [8 + (2 * N)] ptr [4] ptr pkg.T[i..j]",
|
||||
}
|
||||
|
||||
tm := &token.Map{}
|
||||
tm := &t.Map{}
|
||||
for _, tc := range testCases {
|
||||
tokens, _, err := token.Tokenize(tm, filename, []byte(tc))
|
||||
tokens, _, err := t.Tokenize(tm, filename, []byte(tc))
|
||||
if err != nil {
|
||||
tt.Errorf("Tokenize(%q): %v", tc, err)
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user