mirror of
https://github.com/makew0rld/amfora.git
synced 2024-12-01 00:53:28 +03:00
17 lines
268 B
Go
17 lines
268 B
Go
package structs
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestSize(t *testing.T) {
|
|
p := Page{
|
|
Url: "12345",
|
|
Content: "12345",
|
|
Links: []string{"1", "2", "3", "4", "5"},
|
|
}
|
|
assert.Equal(t, 15, p.Size(), "sizes should be equal")
|
|
}
|