Skip to content
This repository was archived by the owner on Nov 18, 2020. It is now read-only.

Commit 07e32c3

Browse files
One more test
1 parent 4bbd735 commit 07e32c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/frame_SUITE.erl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ all() ->
2828
parse_simple_frame,
2929
parse_simple_frame_crlf,
3030
parse_command_only,
31+
parse_command_prefixed_with_newline,
3132
parse_ignore_empty_frames,
3233
parse_heartbeat_interframe,
3334
parse_crlf_interframe,
@@ -71,6 +72,9 @@ parse_simple_frame_gen(Term) ->
7172
parse_command_only(_) ->
7273
{ok, #stomp_frame{command = "COMMAND"}, _Rest} = parse("COMMAND\n\n\0").
7374

75+
parse_command_prefixed_with_newline(_) ->
76+
{ok, #stomp_frame{command = "COMMAND"}, _Rest} = parse("\nCOMMAND\n\n\0").
77+
7478
parse_ignore_empty_frames(_) ->
7579
{ok, #stomp_frame{command = "COMMAND"}, _Rest} = parse("\0\0COMMAND\n\n\0").
7680

0 commit comments

Comments
 (0)