1
0
mirror of https://github.com/danog/liquid.git synced 2024-11-30 08:08:58 +01:00
liquid/drops_test.go
Oliver Steele 27580ca2a5 Coverage
2017-07-19 10:03:11 -04:00

18 lines
301 B
Go

package liquid
import (
"testing"
"github.com/stretchr/testify/require"
)
type dropTest struct{}
func (d dropTest) ToLiquid() interface{} { return "drop" }
func TestDrops(t *testing.T) {
require.Equal(t, "drop", FromDrop(dropTest{}))
require.Equal(t, "not a drop", FromDrop("not a drop"))
}