// Copyright 2023 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package svg
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestNormalize(t *testing.T) {
res := Normalize([]byte("foo"), 1)
assert.Equal(t, "foo", string(res))
res = Normalize([]byte(`
`), 1)
assert.Equal(t, ``, string(res))
res = Normalize([]byte(``), 16)
assert.Equal(t, ``, string(res))
}