1
0
mirror of https://github.com/golang/go synced 2024-11-21 18:04:40 -07:00

test: fix the fix of the rename tests.

Now they actually test again instead of just setting iota to zero.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5700058
This commit is contained in:
Rob Pike 2012-02-24 15:06:32 +11:00
parent 15d8b05f0c
commit d45ee4cb5f
2 changed files with 78 additions and 78 deletions

View File

@ -56,43 +56,44 @@ func main() {
} }
const ( const (
append = iota // cannot use iota here, because iota = 38 below
bool append = 1
byte bool = 2
complex byte = 3
complex64 complex = 4
complex128 complex64 = 5
cap complex128 = 6
close cap = 7
delete close = 8
error delete = 9
false error = 10
float32 false = 11
float64 float32 = 12
imag float64 = 13
int imag = 14
int8 int = 15
int16 int8 = 16
int32 int16 = 17
int64 int32 = 18
len int64 = 19
make len = 20
new make = 21
nil new = 22
panic nil = 23
print panic = 24
println print = 25
real println = 26
recover real = 27
rune recover = 28
string rune = 29
true string = 30
uint true = 31
uint8 uint = 32
uint16 uint8 = 33
uint32 uint16 = 34
uint64 uint32 = 35
uintptr uint64 = 36
NUM uintptr = 37
iota = 0 iota = 38
NUM = 39
) )

View File

@ -19,43 +19,42 @@ func main() {
} }
const ( const (
append = iota append = 1
bool bool = 2
byte byte = 3
complex complex = 4
complex64 complex64 = 5
complex128 complex128 = 6
cap cap = 7
close close = 8
delete delete = 9
error error = 10
false false = 11
float32 float32 = 12
float64 float64 = 13
imag imag = 14
int int = 15
int8 int8 = 16
int16 int16 = 17
int32 int32 = 18
int64 int64 = 19
len len = 20
make make = 21
new new = 22
nil nil = 23
panic panic = 24
print print = 25
println println = 26
real real = 27
recover recover = 28
rune rune = 29
string string = 30
true true = 31
uint uint = 32
uint8 uint8 = 33
uint16 uint16 = 34
uint32 uint32 = 35
uint64 uint64 = 36
uintptr uintptr = 37
NUM iota = "38"
iota = "123"
) )