|
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",
|