mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-05 19:00:32 -05:00
test
This commit is contained in:
parent
0b34c966f7
commit
099777b593
2 changed files with 7 additions and 18 deletions
|
|
@ -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'));
|
||||
()
|
||||
|
|
|
|||
|
|
@ -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'));
|
||||
()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue