Permalink
Browse files

Test iolist_size/1 with bad arguments

  • Loading branch information...
1 parent 881d451 commit 73830b087d3a69611c97751156e9f1c61e1ce26a @bjorng bjorng committed Apr 27, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 erts/emulator/test/binary_SUITE.erl
@@ -280,7 +280,8 @@ bad_list_to_binary(Config) when is_list(Config) ->
test_bad_bin(List) ->
{'EXIT',{badarg,_}} = (catch list_to_binary(List)),
{'EXIT',{badarg,_}} = (catch iolist_to_binary(List)),
- {'EXIT',{badarg,_}} = (catch list_to_bitstring(List)).
+ {'EXIT',{badarg,_}} = (catch list_to_bitstring(List)),
+ {'EXIT',{badarg,_}} = (catch iolist_size(List)).
bad_binary_to_list(doc) -> "Tries binary_to_list/1,3 with bad arguments.";
bad_binary_to_list(Config) when is_list(Config) ->

0 comments on commit 73830b0

Please sign in to comment.