Skip to content

Commit 2cc23a2

Browse files
author
Maetad Sukarasud
committed
increase test coverage
1 parent 78914a4 commit 2cc23a2

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

translations/th/th_test.go

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,10 @@ func TestTranslations(t *testing.T) {
351351
ns: "Test.Excludes",
352352
expected: "Excludes ต้องไม่มี 'text'",
353353
},
354+
{
355+
ns: "Test.ExcludesAll",
356+
expected: "ExcludesAll ต้องไม่มีอักขระ '!@#$' ทั้งหมด",
357+
},
354358
{
355359
ns: "Test.ExcludesRune",
356360
expected: "ExcludesRune ต้องไม่มี '☻'",
@@ -647,6 +651,34 @@ func TestTranslations(t *testing.T) {
647651
ns: "Test.CveString",
648652
expected: "CveString ต้องเป็นรูปแบบ cve",
649653
},
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+
},
650682
}
651683

652684
for _, tt := range tests {

0 commit comments

Comments
 (0)