mirror of
https://github.com/miniflux/v2.git
synced 2025-07-27 17:28:38 +00:00
First commit
This commit is contained in:
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
18
vendor/github.com/tdewolff/parse/js/hash_test.go
generated
vendored
Normal 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")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue