-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve example cases for package gi18n (#2970)
- Loading branch information
Showing
8 changed files
with
24 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -508,9 +508,9 @@ func ExampleRule_Password2() { | |
} | ||
|
||
// Output: | ||
// The Password2 value `gofra` is not a valid password format | ||
// The Password3 value `Goframe` is not a valid password format | ||
// The Password4 value `goframe123` is not a valid password format | ||
// The Password2 value `gofra` is not a valid password2 format | ||
// The Password3 value `Goframe` is not a valid password2 format | ||
// The Password4 value `goframe123` is not a valid password2 format | ||
} | ||
|
||
func ExampleRule_Password3() { | ||
|
@@ -533,8 +533,8 @@ func ExampleRule_Password3() { | |
} | ||
|
||
// Output: | ||
// The Password2 value `gofra` is not a valid password format | ||
// The Password3 value `Goframe123` is not a valid password format | ||
// The Password2 value `gofra` is not a valid password3 format | ||
// The Password3 value `Goframe123` is not a valid password3 format | ||
} | ||
|
||
func ExampleRule_Postcode() { | ||
|
@@ -1040,7 +1040,7 @@ func ExampleRule_Same() { | |
} | ||
|
||
// Output: | ||
// The Password value `goframe.org` must be the same as field Password2 | ||
// The Password value `goframe.org` must be the same as field Password2 value `goframe.net` | ||
} | ||
|
||
func ExampleRule_Different() { | ||
|
@@ -1062,7 +1062,7 @@ func ExampleRule_Different() { | |
} | ||
|
||
// Output: | ||
// The OtherMailAddr value `[email protected]` must be different from field MailAddr | ||
// The OtherMailAddr value `[email protected]` must be different from field MailAddr value `[email protected]` | ||
} | ||
|
||
func ExampleRule_In() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters