aboutsummaryrefslogtreecommitdiff
path: root/src/html/entity_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/html/entity_test.go')
-rw-r--r--src/html/entity_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/html/entity_test.go b/src/html/entity_test.go
index 6688ed2c43..4011da6141 100644
--- a/src/html/entity_test.go
+++ b/src/html/entity_test.go
@@ -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")
}