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

18
vendor/github.com/tdewolff/parse/js/hash_test.go generated vendored Normal file
View file

@ -0,0 +1,18 @@
package js // import "github.com/tdewolff/parse/js"
import (
"testing"
"github.com/tdewolff/test"
)
func TestHashTable(t *testing.T) {
test.T(t, ToHash([]byte("break")), Break, "'break' must resolve to hash.Break")
test.T(t, ToHash([]byte("var")), Var, "'var' must resolve to hash.Var")
test.T(t, Break.String(), "break")
test.T(t, ToHash([]byte("")), Hash(0), "empty string must resolve to zero")
test.T(t, Hash(0xffffff).String(), "")
test.T(t, ToHash([]byte("breaks")), Hash(0), "'breaks' must resolve to zero")
test.T(t, ToHash([]byte("sdf")), Hash(0), "'sdf' must resolve to zero")
test.T(t, ToHash([]byte("uio")), Hash(0), "'uio' must resolve to zero")
}