mirror of
https://github.com/golang/go
synced 2024-11-21 19:14:44 -07:00
exp/eval test: fix build
R=r CC=golang-dev https://golang.org/cl/1599043
This commit is contained in:
parent
ace5269dfe
commit
e0e5c150b0
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user