mirror of
https://gitee.com/dromara/carbon.git
synced 2024-11-29 18:57:37 +08:00
18 lines
339 B
Go
18 lines
339 B
Go
package carbon
|
|
|
|
import (
|
|
"github.com/stretchr/testify/assert"
|
|
"testing"
|
|
)
|
|
|
|
func TestCarbon_SetDefault(t *testing.T) {
|
|
SetDefault(Default{
|
|
Layout: DateTimeLayout,
|
|
Timezone: Local,
|
|
Locale: "en",
|
|
})
|
|
assert.Equal(t, DateTimeLayout, defaultLayout)
|
|
assert.Equal(t, Local, defaultTimezone)
|
|
assert.Equal(t, "en", defaultLocale)
|
|
}
|