mirror of https://github.com/golang/go.git
html: update TestEntityLength for entityMaps changes
This commit is contained in:
parent
9b29a1a92e
commit
3cf736ae29
|
|
@ -9,11 +9,9 @@ import (
|
|||
"unicode/utf8"
|
||||
)
|
||||
|
||||
func init() {
|
||||
UnescapeString("") // force load of entity maps
|
||||
}
|
||||
|
||||
func TestEntityLength(t *testing.T) {
|
||||
entity, entity2 := entityMaps()
|
||||
|
||||
if len(entity) == 0 || len(entity2) == 0 {
|
||||
t.Fatal("maps not loaded")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue