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
16
vendor/github.com/tdewolff/parse/css/hash_test.go
generated
vendored
Normal file
16
vendor/github.com/tdewolff/parse/css/hash_test.go
generated
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
package css // import "github.com/tdewolff/parse/css"
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/tdewolff/test"
|
||||
)
|
||||
|
||||
func TestHashTable(t *testing.T) {
|
||||
test.T(t, ToHash([]byte("font")), Font, "'font' must resolve to hash.Font")
|
||||
test.T(t, Font.String(), "font")
|
||||
test.T(t, Margin_Left.String(), "margin-left")
|
||||
test.T(t, ToHash([]byte("")), Hash(0), "empty string must resolve to zero")
|
||||
test.T(t, Hash(0xffffff).String(), "")
|
||||
test.T(t, ToHash([]byte("fonts")), Hash(0), "'fonts' must resolve to zero")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue