1
0
mirror of https://github.com/danog/liquid.git synced 2024-12-02 14:37:50 +01:00
liquid/drops_test.go

18 lines
301 B
Go
Raw Normal View History

2017-07-19 16:03:11 +02:00
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"))
}