Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
e285ed60
Commit
e285ed60
authored
Jun 08, 2008
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a few tests
SVN=121614
parent
27d95f13
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
48 deletions
+50
-48
test/char_lit.go
test/char_lit.go
+32
-25
test/fixedbugs/bug024.go
test/fixedbugs/bug024.go
+0
-0
test/golden.out
test/golden.out
+4
-12
test/int_lit.go
test/int_lit.go
+14
-11
No files found.
test/char_lit.go
View file @
e285ed60
...
...
@@ -6,30 +6,37 @@
package
main
func
main
()
{
[]
int
(
' '
,
'a'
,
'ä'
,
'本'
,
'\a'
,
'\b'
,
'\f'
,
'\n'
,
'\r'
,
'\t'
,
'\v'
,
'\\'
,
'\'
'
,
'\"'
,
'\000'
,
'\123'
,
'\x00'
,
'\xca'
,
'\xFE'
,
'\u0123'
,
'\ubabe'
,
'\U0123ABCD'
,
func
main
()
int
{
var
i
uint64
=
' '
+
'a'
+
'ä'
+
'本'
+
'\a'
+
'\b'
+
'\f'
+
'\n'
+
'\r'
+
'\t'
+
'\v'
+
'\\'
+
'\'
'
+
'\000'
+
'\123'
+
'\x00'
+
'\xca'
+
'\xFE'
+
'\u0123'
+
'\ubabe'
+
'\U0123ABCD'
+
'\Ucafebabe'
);
;
if
'\Ucafebabe'
!=
0xcafebabe
{
print
"cafebabe wrong
\n
"
;
return
1
;
}
if
i
!=
0xcc238de1
{
print
"number is "
,
i
,
" should be "
,
0xcc238de1
,
"
\n
"
;
return
1
;
}
}
test/bugs/bug024.go
→
test/
fixed
bugs/bug024.go
View file @
e285ed60
File moved
test/golden.out
View file @
e285ed60
=========== ./char_lit.go
char_lit.go:5: syntax error
char_lit.go:17: unknown escape sequence: \
char_lit.go:19: unknown escape sequence: "
BUG: known to fail incorrectly
=========== ./float_lit.go
float_lit.go:5: syntax error
...
...
@@ -39,8 +35,6 @@ hello, world
BUG: known to succeed incorrectly
=========== ./int_lit.go
int_lit.go:5: syntax error
BUG: known to fail incorrectly
=========== ./iota.go
...
...
@@ -52,8 +46,8 @@ BUG: known to fail incorrectly
=========== ./string_lit.go
string_lit.go:5: syntax error
string_lit.go:12: unknown escape sequence: \
BUG: known to fail incorrectly
string_lit.go:12: unknown escape sequence: \
BUG: known to fail incorrectly
=========== ./switch.go
...
...
@@ -205,10 +199,6 @@ BUG: known to fail incorrectly
bugs/bug023.go:20: fatal error: naddr: const <Type>I{<TypeName>110(<_t117>{},<_o119>{},{});}
BUG: known to fail incorrectly
=========== bugs/bug024.go
bugs/bug024.go:8: unknown escape sequence: \
BUG: erroneous errors but compiles anyway
=========== bugs/bug025.go
bugs/bug025.go:7: fatal error: dumpexportvar: oname nil: Foo
...
...
@@ -301,4 +291,6 @@ fixedbugs/bug007.go:7: addtyp: renaming Point/<Point>{<x><float32>FLOAT32;<y><fl
=========== fixedbugs/bug021.go
=========== fixedbugs/bug024.go
=========== fixedbugs/bug031.go
test/int_lit.go
View file @
e285ed60
...
...
@@ -6,15 +6,18 @@
package
main
func
main
()
{
[]
int
(
0
,
123
,
0123
,
0000
,
0x0
,
0x123
,
0X0
,
0X123
);
func
main
()
int
{
s
:=
0
+
123
+
0123
+
0000
+
0x0
+
0x123
+
0X0
+
0X123
;
if
s
!=
788
{
print
"s is "
,
s
,
"; should be 788
\n
"
;
return
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