Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
e0e5c150
Commit
e0e5c150
authored
Jun 09, 2010
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exp/eval test: fix build
R=r CC=golang-dev
https://golang.org/cl/1599043
parent
ace5269d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
expr_test.go
src/pkg/exp/eval/expr_test.go
+3
-3
No files found.
src/pkg/exp/eval/expr_test.go
View file @
e0e5c150
...
...
@@ -12,7 +12,7 @@ import (
var
undefined
=
"undefined"
var
typeAsExpr
=
"type .* used as expression"
var
badCharLit
=
"character literal"
var
illegalEscape
=
"illegal char escap
e"
var
unknownEscape
=
"unknown escape sequenc
e"
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'"
,
illegal
Escape
),
CErr
(
"'
\\
z'"
,
unknown
Escape
),
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
\"
"
,
illegal
Escape
),
CErr
(
"
\"\\
z
\"
"
,
unknown
Escape
),
CErr
(
"
\"
abc"
,
"string not terminated"
),
Val
(
"(i)"
,
1
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment