1
0
mirror of https://github.com/danog/liquid.git synced 2024-12-02 23:27:47 +01:00
liquid/evaluator/drop_test.go

17 lines
274 B
Go
Raw Normal View History

2017-07-06 05:25:03 +02:00
package evaluator
import (
"testing"
"github.com/stretchr/testify/require"
)
type testDrop struct{}
func (d testDrop) ToLiquid() interface{} { return 3 }
func TestToLiquid(t *testing.T) {
require.Equal(t, 2, ToLiquid(2))
require.Equal(t, 3, ToLiquid(testDrop{}))
}