aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-12-26 19:10:40 +0100
committerLoïc Hoguin <[email protected]>2019-12-26 19:10:40 +0100
commitf14445f046f0d02284ade693e303114dc8214ff9 (patch)
treefe82036d0b770dcfaabde6266bef9ba8bb175080
parent25d1dd6fd839431aca12f4f4c8bfccf78a78ed0c (diff)
downloadcowlib-f14445f046f0d02284ade693e303114dc8214ff9.tar.gz
cowlib-f14445f046f0d02284ade693e303114dc8214ff9.tar.bz2
cowlib-f14445f046f0d02284ade693e303114dc8214ff9.zip
Fix Proper tests following cow_hpack changes
-rw-r--r--src/cow_hpack.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cow_hpack.erl b/src/cow_hpack.erl
index 9423e1a..669bea7 100644
--- a/src/cow_hpack.erl
+++ b/src/cow_hpack.erl
@@ -1358,11 +1358,11 @@ table_update_size(MaxSize, State=#state{dyn_table=DynTable}) ->
-ifdef(TEST).
prop_str_raw() ->
?FORALL(Str, binary(), begin
- {Str, <<>>} =:= dec_str(iolist_to_binary(enc_str(Str, #{huffman => false})))
+ {Str, <<>>} =:= dec_str(iolist_to_binary(enc_str(Str, no_huffman)))
end).
prop_str_huffman() ->
?FORALL(Str, binary(), begin
- {Str, <<>>} =:= dec_str(iolist_to_binary(enc_str(Str, #{huffman => true})))
+ {Str, <<>>} =:= dec_str(iolist_to_binary(enc_str(Str, huffman)))
end).
-endif.