File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -351,6 +351,10 @@ func TestTranslations(t *testing.T) {
351
351
ns : "Test.Excludes" ,
352
352
expected : "Excludes ต้องไม่มี 'text'" ,
353
353
},
354
+ {
355
+ ns : "Test.ExcludesAll" ,
356
+ expected : "ExcludesAll ต้องไม่มีอักขระ '!@#$' ทั้งหมด" ,
357
+ },
354
358
{
355
359
ns : "Test.ExcludesRune" ,
356
360
expected : "ExcludesRune ต้องไม่มี '☻'" ,
@@ -647,6 +651,34 @@ func TestTranslations(t *testing.T) {
647
651
ns : "Test.CveString" ,
648
652
expected : "CveString ต้องเป็นรูปแบบ cve" ,
649
653
},
654
+ {
655
+ ns : "Test.StrPtrMinLen" ,
656
+ expected : "StrPtrMinLen ต้องมีความยาวอย่างน้อย 10 ตัวอักษร" ,
657
+ },
658
+ {
659
+ ns : "Test.StrPtrMaxLen" ,
660
+ expected : "StrPtrMaxLen ต้องมีความยาวไม่เกิน 1 ตัวอักษร" ,
661
+ },
662
+ {
663
+ ns : "Test.StrPtrLen" ,
664
+ expected : "StrPtrLen ต้องมีความยาว 2 ตัวอักษร" ,
665
+ },
666
+ {
667
+ ns : "Test.StrPtrLt" ,
668
+ expected : "StrPtrLt ต้องมีความยาวน้อยกว่า 1 ตัวอักษร" ,
669
+ },
670
+ {
671
+ ns : "Test.StrPtrLte" ,
672
+ expected : "StrPtrLte ต้องมีความยาวไม่เกิน 1 ตัวอักษร" ,
673
+ },
674
+ {
675
+ ns : "Test.StrPtrGt" ,
676
+ expected : "StrPtrGt ต้องมีความยาวมากกว่า 10 ตัวอักษร" ,
677
+ },
678
+ {
679
+ ns : "Test.StrPtrGte" ,
680
+ expected : "StrPtrGte ต้องมีความยาวอย่างน้อย 10 ตัวอักษร" ,
681
+ },
650
682
}
651
683
652
684
for _ , tt := range tests {
You can’t perform that action at this time.
0 commit comments