From ec9054b4f8aabf5504e04294f4c9afc7aeb1864e Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Tue, 23 Jun 2020 07:45:37 +0200 Subject: [PATCH] add more tests --- mapobjectdb/utf8_test.go | 6 ++++++ 1 file changed, 6 insertions(+) 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") + } +}