summaryrefslogtreecommitdiff
path: root/std/textproto/test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/textproto/test.ts')
-rw-r--r--std/textproto/test.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/std/textproto/test.ts b/std/textproto/test.ts
index 3b71bc08c..ec66bfd8c 100644
--- a/std/textproto/test.ts
+++ b/std/textproto/test.ts
@@ -180,3 +180,16 @@ test({
assertEquals(m.get("Content-Disposition"), 'form-data; name="test"');
},
});
+
+test({
+ name: "[textproto] #4521 issue",
+ async fn() {
+ const input = "abcdefghijklmnopqrstuvwxyz";
+ const bufSize = 25;
+ const tp = new TextProtoReader(
+ new BufReader(stringsReader(input), bufSize)
+ );
+ const line = await tp.readLine();
+ assertEquals(line, input);
+ },
+});