1
0
mirror of https://github.com/golang/go synced 2024-11-12 06:30:21 -07:00

exp/eval test: fix build

R=r
CC=golang-dev
https://golang.org/cl/1599043
This commit is contained in:
Robert Griesemer 2010-06-09 15:52:42 -07:00
parent ace5269dfe
commit e0e5c150b0

View File

@ -12,7 +12,7 @@ import (
var undefined = "undefined"
var typeAsExpr = "type .* used as expression"
var badCharLit = "character literal"
var illegalEscape = "illegal char escape"
var unknownEscape = "unknown escape sequence"
var opTypes = "illegal (operand|argument) type|cannot index into"
var badAddrOf = "cannot take the address"
var constantTruncated = "constant [^ ]* truncated"
@ -37,7 +37,7 @@ var exprTests = []test{
// Produces two parse errors
//CErr("'''", ""),
CErr("'\n'", badCharLit),
CErr("'\\z'", illegalEscape),
CErr("'\\z'", unknownEscape),
CErr("'ab'", badCharLit),
Val("1.0", bignum.Rat(1, 1)),
@ -48,7 +48,7 @@ var exprTests = []test{
Val("\"abc\"", "abc"),
Val("\"\"", ""),
Val("\"\\n\\\"\"", "\n\""),
CErr("\"\\z\"", illegalEscape),
CErr("\"\\z\"", unknownEscape),
CErr("\"abc", "string not terminated"),
Val("(i)", 1),