diff --git a/doc/go_spec.html b/doc/go_spec.html index 793dbb2eab..ab05fbcd1b 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -4388,8 +4388,6 @@ Implementation does not honor the restriction on goto statements and targets (no cap() does not work on maps or chans.
len() does not work on chans. -
-string([]int{...}) conversion is not yet implemented.

diff --git a/test/ken/string.go b/test/ken/string.go index a823e92835..f7c02822f1 100644 --- a/test/ken/string.go +++ b/test/ken/string.go @@ -88,15 +88,25 @@ main() z1[2] = 'c'; c = string(&z1); if c != "abc" { - panic("create array ", c); + panic("create byte array ", c); + } + + /* create string with int array */ + var z2 [3]int; + z2[0] = 'a'; + z2[1] = '\u1234'; + z2[2] = 'c'; + c = string(&z2); + if c != "a\u1234c" { + panic("create int array ", c); } /* create string with byte array pointer */ - z2 := new([3]byte); - z2[0] = 'a'; - z2[1] = 'b'; - z2[2] = 'c'; - c = string(z2); + z3 := new([3]byte); + z3[0] = 'a'; + z3[1] = 'b'; + z3[2] = 'c'; + c = string(z3); if c != "abc" { panic("create array pointer ", c); }