...

Source file src/github.com/go-openapi/strfmt/conv/date_test.go

Documentation: github.com/go-openapi/strfmt/conv

     1  package conv
     2  
     3  import (
     4  	"testing"
     5  	"time"
     6  
     7  	"github.com/stretchr/testify/assert"
     8  
     9  	"github.com/go-openapi/strfmt"
    10  )
    11  
    12  func TestDateValue(t *testing.T) {
    13  	assert.Equal(t, strfmt.Date{}, DateValue(nil))
    14  	date := strfmt.Date(time.Now())
    15  	assert.Equal(t, date, DateValue(&date))
    16  }
    17  

View as plain text