You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gotime/format_test.go

24 lines
1.0 KiB

package gotime
import "testing"
func TestFormat(t *testing.T) {
t.Log("DateTimeFormat", Current().SetFormat(DateTimeFormat))
t.Log("DateTimeSFormat", Current().SetFormat(DateTimeSFormat))
t.Log("DateTimeShrinkFormat", Current().SetFormat(DateTimeShrinkFormat))
t.Log("DateTimeShrinkSFormat", Current().SetFormat(DateTimeShrinkSFormat))
t.Log("DateFormat", Current().SetFormat(DateFormat))
t.Log("TimeFormat", Current().SetFormat(TimeFormat))
t.Log("TimeShrinkFormat", Current().SetFormat(TimeShrinkFormat))
}
func TestZhFormat(t *testing.T) {
t.Log("DateTimeZhFormat", Current().SetFormat(DateTimeZhFormat))
t.Log("DateTimeZhSFormat", Current().SetFormat(DateTimeZhSFormat))
t.Log("DateTimeZhShrinkFormat", Current().SetFormat(DateTimeZhShrinkFormat))
t.Log("DateTimeZhShrinkSFormat", Current().SetFormat(DateTimeZhShrinkSFormat))
t.Log("DateZhFormat", Current().SetFormat(DateZhFormat))
t.Log("TimeZhFormat", Current().SetFormat(TimeZhFormat))
t.Log("TimeZhShrinkFormat", Current().SetFormat(TimeZhShrinkFormat))
}