diff options
Diffstat (limited to 'std/textproto')
-rw-r--r-- | std/textproto/test.ts | 13 |
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); + }, +}); |