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:
Luka Krmpotic 2025-02-06 17:18:45 +01:00
parent 4cc7705e56
commit d7224c1837
1 changed files with 0 additions and 10 deletions

View File

@ -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 {