统一单元测试分组格式

This commit is contained in:
gouguoyin 2024-11-25 16:16:58 +08:00
parent 2cc49f17a0
commit cf154582fe

View File

@ -1,9 +1,11 @@
package carbon
import (
"github.com/stretchr/testify/assert"
"fmt"
"testing"
"time"
"github.com/stretchr/testify/assert"
)
func TestCarbon_SetWeekStartsAt(t *testing.T) {
@ -196,7 +198,8 @@ func TestCarbon_SetLocale(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
assert.Equalf(t, tt.want, tt.carbon.ToMonthString(PRC), "SetLocale()")
fmt.Println("LLL", tt.carbon.Location())
assert.Equalf(t, tt.want, tt.carbon.ToMonthString(), "SetLocale()")
})
}
}