Here is what I get on Mac OS X
❯ go version
go version go1.0.2
❯ (cp -r $GOROOT/src/pkg/unicode/utf16 /tmp; cd /tmp/utf16; go test; rm -rf /tmp/utf16)
# _/tmp/utf16_test
./utf16_test.go:16: undefined: MaxRune
./utf16_test.go:17: undefined: MaxRune
./utf16_test.go:19: undefined: ReplacementChar
./utf16_test.go:20: undefined: ReplacementChar
FAIL _/tmp/utf16 [build failed]
❯ (cd $GOROOT/src/pkg/unicode/utf16; go test)
PASS
ok unicode/utf16 0.022s
Also happens with 1.1beta: go version devel +267bb9854177 Wed Apr 03 18:23:43 2013 -0700 darwin/amd64
I don't understand how is that even possible. It looks like export_test.go isn't included in the test build for some reason.
Is it expected? If not, can you try and recreate it?
If it is, why?
Thanks,