1
0
mirror of https://github.com/makew0rld/amfora.git synced 2024-12-04 14:46:29 -05:00
amfora/structs/structs_test.go
makeworld 3aff20f43b 🚧 Dynamic wrapping #33
This is the majority of the work for this issue completed.
2020-07-02 23:55:24 -04:00

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")
}