Skip to content

Commit

Permalink
Refactor character encoding test cases formatting
Browse files Browse the repository at this point in the history
Reformatted the test cases for European umlaut characters for consistency and readability. This change does not affect the execution or output of the tests.
  • Loading branch information
wneessen committed Oct 26, 2024
1 parent ef3f103 commit f5279cd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions msg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1571,8 +1571,10 @@ func TestMsg_Subject(t *testing.T) {
}{
{"Normal latin characters", "Hello world!", "Hello world!"},
{"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", `これはテスト対象です。`,
`=?UTF-8?q?=E3=81=93=E3=82=8C=E3=81=AF=E3=83=86=E3=82=B9=E3=83=88=E5=AF=BE?= ` +
Expand Down Expand Up @@ -1625,6 +1627,7 @@ func TestMsg_SetMessageID(t *testing.T) {
}
})
}

func TestMsg_GetMessageID(t *testing.T) {
t.Run("GetMessageID with normal IDs", func(t *testing.T) {
tests := []struct {
Expand Down

0 comments on commit f5279cd

Please sign in to comment.