mirror of https://github.com/golang/go.git
unicode/utf8: remove test's init function
TestConstants and init test the same thing, remove init, it does not exist in utf16_test.go either. Fixes #71579
This commit is contained in:
parent
4cc7705e56
commit
d7224c1837
|
|
@ -12,16 +12,6 @@ import (
|
|||
. "unicode/utf8"
|
||||
)
|
||||
|
||||
// Validate the constants redefined from unicode.
|
||||
func init() {
|
||||
if MaxRune != unicode.MaxRune {
|
||||
panic("utf8.MaxRune is wrong")
|
||||
}
|
||||
if RuneError != unicode.ReplacementChar {
|
||||
panic("utf8.RuneError is wrong")
|
||||
}
|
||||
}
|
||||
|
||||
// Validate the constants redefined from unicode.
|
||||
func TestConstants(t *testing.T) {
|
||||
if MaxRune != unicode.MaxRune {
|
||||
|
|
|
|||
Loading…
Reference in New Issue