kimchi/strfmt/conv/date_test.go

17 lines
276 B
Go

package conv
import (
"testing"
"time"
"github.com/stretchr/testify/assert"
"github.com/go-openapi/strfmt"
)
func TestDateValue(t *testing.T) {
assert.Equal(t, strfmt.Date{}, DateValue(nil))
date := strfmt.Date(time.Now())
assert.Equal(t, date, DateValue(&date))
}