diff --git a/tests/multipart_form/t_chunk.ml b/tests/multipart_form/t_chunk.ml index 346803ed..3d46052a 100644 --- a/tests/multipart_form/t_chunk.ml +++ b/tests/multipart_form/t_chunk.ml @@ -38,17 +38,13 @@ let test input_str = let () = pf "T1\n"; test - "hello\r\n\ - --YOLO\n\ + "hello--YOLO\n\ \ world\n\ - \ what is the meaning of\r\n\ - --YOLOthis??\r\n\ - --YOLOok ok ok\r\n\ - --YOLO"; + \ what is the meaning of--YOLOthis??--YOLOok ok ok--YOLO"; pf "T2\n"; - test "\r\n--YOLO\r\n--YOLOah bon\r\n--YOLOaight\r\n--YOLO\r\n--YOLO"; + test "--YOLO--YOLOah bon--YOLOaight--YOLO--YOLO"; pf "T3\n"; test - (spf "\r\n--YOLO%s\r\n--YOLO\r\n--YOLO%s\r\n--YOLO%s" (String.make 400 'a') + (spf "--YOLO%s--YOLO--YOLO%s--YOLO%s" (String.make 400 'a') (String.make 512 'b') (String.make 400 'c')); () diff --git a/tests/multipart_form/t_parse.ml b/tests/multipart_form/t_parse.ml index 955968b5..4eb27b9c 100644 --- a/tests/multipart_form/t_parse.ml +++ b/tests/multipart_form/t_parse.ml @@ -41,34 +41,27 @@ let test input_str = let () = pf "T1\n"; test - "\r\n\ - --YOLO\r\n\ + "--YOLO\r\n\ some-super-cool: header here\r\n\ ohlook: here\r\n\ \r\n\ and now for the b-o-d-y 👏\n\ - \r\n\ --YOLO\r\n\ more: headers\r\n\ \r\n\ and another body\r\n\ - \r\n\ --YOLO--"; pf "T1\n"; test (spf - "\r\n\ - --YOLO\r\n\ + "--YOLO\r\n\ some-super-cool: header here\r\n\ ohlook: here\r\n\ \r\n\ and now for the bigger body:\n\ %s\n\ - \r\n\ --YOLO\r\n\ more: headers\r\n\ \r\n\ - and another body\r\n\ - --YOLO--" - (String.make 500 'a')); + and another body--YOLO--" (String.make 500 'a')); ()