1
0
mirror of https://github.com/danog/liquid.git synced 2024-11-30 08:39:01 +01:00
liquid/evaluator/drop_test.go
Oliver Steele 36929af0a6 Coverage
2017-07-05 23:25:03 -04:00

17 lines
274 B
Go

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