diff options
author | EuAndreh <eu@euandre.org> | 2025-05-14 08:55:54 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2025-05-14 08:55:54 -0300 |
commit | f63adddac699eaa66a634a0f83f2c3dbe6408f22 (patch) | |
tree | 650377bd5c0b349148a7b645f64c6d12c0395cb8 /tests/gotext.go | |
parent | src/gotext.go: Cleanup LC_* comments and make them consts (diff) | |
download | gotext-f63adddac699eaa66a634a0f83f2c3dbe6408f22.tar.gz gotext-f63adddac699eaa66a634a0f83f2c3dbe6408f22.tar.xz |
src/gotext.go: Rename msgID -> msgIDT
Diffstat (limited to 'tests/gotext.go')
-rw-r--r-- | tests/gotext.go | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/tests/gotext.go b/tests/gotext.go index 25f0f3a..dfcbc99 100644 --- a/tests/gotext.go +++ b/tests/gotext.go @@ -57,9 +57,9 @@ func test_processFiles() { keyword: "i18n.G", })) - g.TAssertEqual(msgIDs, map[string][]msgID{ - "foo": []msgID{ - msgID{ + g.TAssertEqual(msgIDs, map[string][]msgIDT{ + "foo": []msgIDT{ + msgIDT{ comment: "#. TRANSLATORS: a comment\n", fname: fname, line: 5, @@ -86,8 +86,8 @@ func test_processFiles() { keyword: "i18n.G", })) - g.TAssertEqual(msgIDs, map[string][]msgID{ - "foo": []msgID{ + g.TAssertEqual(msgIDs, map[string][]msgIDT{ + "foo": []msgIDT{ { comment: "#. TRANSLATORS: comment 1\n", fname: fname, @@ -116,8 +116,8 @@ func test_processFiles() { keyword: "i18n.G", })) - g.TAssertEqual(msgIDs, map[string][]msgID{ - "foo\\nbar\\nbaz": []msgID{ + g.TAssertEqual(msgIDs, map[string][]msgIDT{ + "foo\\nbar\\nbaz": []msgIDT{ { comment: "#. TRANSLATORS: a comment\n", fname: fname, @@ -166,8 +166,8 @@ func test_writePotFile() { g.TestStart("writePotFile()") g.Testing("write simple file", func() { - msgIDs := map[string][]msgID{ - "foo": []msgID{ + msgIDs := map[string][]msgIDT{ + "foo": []msgIDT{ { fname: "fname", line: 2, @@ -197,8 +197,8 @@ func test_writePotFile() { }) g.Testing("write template with 2 entries", func() { - msgIDs := map[string][]msgID{ - "foo": []msgID{ + msgIDs := map[string][]msgIDT{ + "foo": []msgIDT{ { fname: "fname", line: 2, @@ -234,8 +234,8 @@ func test_writePotFile() { }) g.Testing("template without comment", func() { - msgIDs := map[string][]msgID{ - "foo": []msgID{ + msgIDs := map[string][]msgIDT{ + "foo": []msgIDT{ { fname: "fname", line: 2, @@ -263,8 +263,8 @@ func test_writePotFile() { }) g.Testing("output without location", func() { - msgIDs := map[string][]msgID{ - "foo": []msgID{ + msgIDs := map[string][]msgIDT{ + "foo": []msgIDT{ { fname: "fname", line: 2, @@ -293,8 +293,8 @@ func test_writePotFile() { }) g.Testing("output with hint", func() { - msgIDs := map[string][]msgID{ - "foo": []msgID{ + msgIDs := map[string][]msgIDT{ + "foo": []msgIDT{ { fname: "fname", line: 2, @@ -325,8 +325,8 @@ func test_writePotFile() { }) g.Testing("output with plural", func() { - msgIDs := map[string][]msgID{ - "foo": []msgID{ + msgIDs := map[string][]msgIDT{ + "foo": []msgIDT{ { msgidPlural: "plural", fname: "fname", @@ -358,8 +358,8 @@ func test_writePotFile() { }) g.Testing("multiline output", func() { - msgIDs := map[string][]msgID{ - "foo\\nbar\\nbaz": []msgID{ + msgIDs := map[string][]msgIDT{ + "foo\\nbar\\nbaz": []msgIDT{ { fname: "fname", line: 2, @@ -391,14 +391,14 @@ func test_writePotFile() { }) g.Testing("output tidy output", func() { - msgIDs := map[string][]msgID{ - "foo\\nbar\\nbaz": []msgID{ + msgIDs := map[string][]msgIDT{ + "foo\\nbar\\nbaz": []msgIDT{ { fname: "fname", line: 2, }, }, - "zzz\\n": []msgID{ + "zzz\\n": []msgIDT{ { fname: "fname", line: 4, |