add more tests

This commit is contained in:
BuckarooBanzay 2020-06-23 07:45:37 +02:00
parent 900221770e
commit ec9054b4f8

View File

@ -16,3 +16,9 @@ func TestValidUtf8(t *testing.T) {
t.Error("should be valid") t.Error("should be valid")
} }
} }
func TestEmptyString(t *testing.T) {
if !utf8.Valid([]byte("")) {
t.Error("should be valid")
}
}