1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-07-27 17:28:38 +00:00

First commit

This commit is contained in:
Frédéric Guillot 2017-11-19 21:10:04 -08:00
commit 8ffb773f43
2121 changed files with 1118910 additions and 0 deletions

17
vendor/github.com/tdewolff/parse/svg/hash_test.go generated vendored Normal file
View file

@ -0,0 +1,17 @@
package svg // import "github.com/tdewolff/parse/svg"
import (
"testing"
"github.com/tdewolff/test"
)
func TestHashTable(t *testing.T) {
test.T(t, ToHash([]byte("svg")), Svg, "'svg' must resolve to hash.Svg")
test.T(t, ToHash([]byte("width")), Width, "'width' must resolve to hash.Width")
test.T(t, Svg.String(), "svg")
test.T(t, ToHash([]byte("")), Hash(0), "empty string must resolve to zero")
test.T(t, Hash(0xffffff).String(), "")
test.T(t, ToHash([]byte("svgs")), Hash(0), "'svgs' must resolve to zero")
test.T(t, ToHash([]byte("uopi")), Hash(0), "'uopi' must resolve to zero")
}