amfora/structs/structs_test.go

18 lines
288 B
Go
Raw Normal View History

2020-06-18 23:54:48 +03:00
package structs
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestSize(t *testing.T) {
p := Page{
Url: "12345",
Raw: "12345",
2020-06-18 23:54:48 +03:00
Content: "12345",
Links: []string{"1", "2", "3", "4", "5"},
}
assert.Equal(t, 20, p.Size(), "sizes should be equal")
2020-06-18 23:54:48 +03:00
}