diff --git a/mapobjectdb/utf8_test.go b/mapobjectdb/utf8_test.go index 6721f73..28fce7d 100644 --- a/mapobjectdb/utf8_test.go +++ b/mapobjectdb/utf8_test.go @@ -16,3 +16,9 @@ func TestValidUtf8(t *testing.T) { t.Error("should be valid") } } + +func TestEmptyString(t *testing.T) { + if !utf8.Valid([]byte("")) { + t.Error("should be valid") + } +}