Codebase list golang-github-go-playground-validator-v10 / 974d549
Fix test with golang-github-go-playground-locales 0.14.0 Shengjing Zhu 2 years ago
3 changed file(s) with 54 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
77 dh-golang,
88 golang-any,
99 golang-github-go-playground-assert-v2-dev,
10 golang-github-go-playground-locales-dev,
10 golang-github-go-playground-locales-dev (>= 0.14.0~),
1111 golang-github-go-playground-universal-translator-dev,
1212 golang-github-leodido-go-urn-dev,
1313 golang-golang-x-crypto-dev
2121 Package: golang-github-go-playground-validator-v10-dev
2222 Architecture: all
2323 Depends: golang-github-go-playground-assert-v2-dev,
24 golang-github-go-playground-locales-dev,
24 golang-github-go-playground-locales-dev (>= 0.14.0~),
2525 golang-github-go-playground-universal-translator-dev,
2626 golang-github-leodido-go-urn-dev,
2727 golang-golang-x-crypto-dev,
0 From: Dean Karn <Dean.Karn@gmail.com>
1 Date: Sun, 8 Aug 2021 15:33:28 -0700
2 Subject: Fix test with golang-github-go-playground-locales 0.14.0
3
4 Origin: backport, https://github.com/go-playground/validator/pull/815
5 ---
6 translations/fr/fr_test.go | 8 ++++----
7 1 file changed, 4 insertions(+), 4 deletions(-)
8
9 diff --git a/translations/fr/fr_test.go b/translations/fr/fr_test.go
10 index a3f864c..c2c88d0 100644
11 --- a/translations/fr/fr_test.go
12 +++ b/translations/fr/fr_test.go
13 @@ -4,9 +4,9 @@ import (
14 "testing"
15 "time"
16
17 + . "github.com/go-playground/assert/v2"
18 french "github.com/go-playground/locales/fr"
19 ut "github.com/go-playground/universal-translator"
20 - . "github.com/go-playground/assert/v2"
21 "github.com/go-playground/validator/v10"
22 )
23
24 @@ -536,7 +536,7 @@ func TestTranslations(t *testing.T) {
25 },
26 {
27 ns: "Test.MaxNumber",
28 - expected: "MaxNumber doit être égal à 1 113,00 ou moins",
29 + expected: "MaxNumber doit être égal à 1 113,00 ou moins",
30 },
31 {
32 ns: "Test.MaxMultiple",
33 @@ -548,7 +548,7 @@ func TestTranslations(t *testing.T) {
34 },
35 {
36 ns: "Test.MinNumber",
37 - expected: "MinNumber doit être égal à 1 113,00 ou plus",
38 + expected: "MinNumber doit être égal à 1 113,00 ou plus",
39 },
40 {
41 ns: "Test.MinMultiple",
42 @@ -560,7 +560,7 @@ func TestTranslations(t *testing.T) {
43 },
44 {
45 ns: "Test.LenNumber",
46 - expected: "LenNumber doit être égal à 1 113,00",
47 + expected: "LenNumber doit être égal à 1 113,00",
48 },
49 {
50 ns: "Test.LenMultiple",
0 0001-Fix-test-with-golang-github-go-playground-locales-0..patch