mirror of
https://github.com/danog/liquid.git
synced 2024-11-30 08:39:01 +01:00
17 lines
274 B
Go
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{}))
|
|
}
|