mirror of
https://github.com/makeworld-the-better-one/amfora.git
synced 2024-11-22 15:46:51 +03:00
3aff20f43b
This is the majority of the work for this issue completed.
18 lines
288 B
Go
18 lines
288 B
Go
package structs
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestSize(t *testing.T) {
|
|
p := Page{
|
|
Url: "12345",
|
|
Raw: "12345",
|
|
Content: "12345",
|
|
Links: []string{"1", "2", "3", "4", "5"},
|
|
}
|
|
assert.Equal(t, 20, p.Size(), "sizes should be equal")
|
|
}
|