mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-15 02:12:55 +01:00
Refactor character encoding test cases formatting
Reformatted the test cases for European umlaut characters for consistency and readability. This change does not affect the execution or output of the tests.
This commit is contained in:
parent
ef3f103c30
commit
f5279cd584
1 changed files with 5 additions and 2 deletions
|
@ -1571,8 +1571,10 @@ func TestMsg_Subject(t *testing.T) {
|
||||||
}{
|
}{
|
||||||
{"Normal latin characters", "Hello world!", "Hello world!"},
|
{"Normal latin characters", "Hello world!", "Hello world!"},
|
||||||
{"Empty string", "", ""},
|
{"Empty string", "", ""},
|
||||||
{"European umlaut characters", "Héllô wörld! äöüß",
|
{
|
||||||
"=?UTF-8?q?H=C3=A9ll=C3=B4_w=C3=B6rld!_=C3=A4=C3=B6=C3=BC=C3=9F?="},
|
"European umlaut characters", "Héllô wörld! äöüß",
|
||||||
|
"=?UTF-8?q?H=C3=A9ll=C3=B4_w=C3=B6rld!_=C3=A4=C3=B6=C3=BC=C3=9F?=",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Japanese characters", `これはテスト対象です。`,
|
"Japanese characters", `これはテスト対象です。`,
|
||||||
`=?UTF-8?q?=E3=81=93=E3=82=8C=E3=81=AF=E3=83=86=E3=82=B9=E3=83=88=E5=AF=BE?= ` +
|
`=?UTF-8?q?=E3=81=93=E3=82=8C=E3=81=AF=E3=83=86=E3=82=B9=E3=83=88=E5=AF=BE?= ` +
|
||||||
|
@ -1625,6 +1627,7 @@ func TestMsg_SetMessageID(t *testing.T) {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestMsg_GetMessageID(t *testing.T) {
|
func TestMsg_GetMessageID(t *testing.T) {
|
||||||
t.Run("GetMessageID with normal IDs", func(t *testing.T) {
|
t.Run("GetMessageID with normal IDs", func(t *testing.T) {
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
|
|
Loading…
Reference in a new issue