15 lines
239 B
Go
15 lines
239 B
Go
package nomino
|
|
|
|
import (
|
|
"testing"
|
|
"time"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestTimestamp(t *testing.T) {
|
|
n := time.Now()
|
|
st, err := Timestamp()(nil)
|
|
assert.NoError(t, err)
|
|
assert.Equal(t, n.Format(FileTimestamp), st)
|
|
}
|