aboutsummaryrefslogtreecommitdiff
path: root/src/mime/quotedprintable/reader_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/mime/quotedprintable/reader_test.go')
-rw-r--r--src/mime/quotedprintable/reader_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mime/quotedprintable/reader_test.go b/src/mime/quotedprintable/reader_test.go
index c12d2ca3db..885d1a650d 100644
--- a/src/mime/quotedprintable/reader_test.go
+++ b/src/mime/quotedprintable/reader_test.go
@@ -70,6 +70,11 @@ func TestReader(t *testing.T) {
// Transport padding
{in: "foo= \r\nbar", want: "foobar"},
{in: "foo=\t \r\nbar", want: "foobar"},
+ {
+ // Line break with period at the end.
+ in: strings.Repeat(".", 75) + "=\r\n=2E\r\n=2E\r\nfooter.",
+ want: strings.Repeat(".", 76) + "\r\n.\r\nfooter.",
+ },
}
for _, tt := range tests {
var buf strings.Builder