1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-11 06:40:40 +00:00

Merge remote-tracking branch 'origin/develop' into go_modules_route_compatibility

# Conflicts:
#	go.mod
#	go.sum
This commit is contained in:
qiantao
2020-06-18 16:41:03 +08:00
22 changed files with 220 additions and 60 deletions

View File

@ -381,8 +381,8 @@ func TestValid(t *testing.T) {
if len(valid.Errors) != 1 {
t.Fatalf("valid errors len should be 1 but got %d", len(valid.Errors))
}
if valid.Errors[0].Key != "Age.Range" {
t.Errorf("Message key should be `Name.Match` but got %s", valid.Errors[0].Key)
if valid.Errors[0].Key != "Age.Range." {
t.Errorf("Message key should be `Age.Range` but got %s", valid.Errors[0].Key)
}
}