Open williamthome opened 3 months ago
Take this example from Euneus:
1> begin .. {continue, State} = euneus_decoder:stream_start(<<"{\"foo\":">>, #{}), .. euneus_decoder:stream_continue(<<"1}">>, State) .. end. {end_of_input,#{<<"foo">> => 1}}
There is unwanted noise in this code block by using begin...end.
begin...end
Doctest should be able to skip the match (right value), for example:
1> {continue, State} = euneus_decoder:stream_start(<<"{\"foo\":">>, #{}). 2> euneus_decoder:stream_continue(<<"1}">>, State). {end_of_input,#{<<"foo">> => 1}}
The State is an opaque term and contains irrelevant information. It's not necessary to print it in the example.
State
Take this example from Euneus:
There is unwanted noise in this code block by using
begin...end
.Doctest should be able to skip the match (right value), for example:
The
State
is an opaque term and contains irrelevant information. It's not necessary to print it in the example.