Skip to content

Commit

Permalink
Add new hex string conversion tests
Browse files Browse the repository at this point in the history
  • Loading branch information
systra committed Jan 3, 2012
1 parent f462f2a commit c7fde14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/ucp_utils_tests.erl
Expand Up @@ -10,6 +10,10 @@ to_hex_test_() ->
end}, end},
{"list to hexstr", {"list to hexstr",
?_test(?assertEqual("081E", ucp_utils:to_hexstr([8,30])))}, ?_test(?assertEqual("081E", ucp_utils:to_hexstr([8,30])))},
{"binary to hexstr",
?_test(?assertEqual("1E12", ucp_utils:to_hexstr(<<30,18>>)))},
{"unicode to hexstr",
?_test(?assertEqual("001E01420105006B0061", ucp_utils:to_hexstr([30,322,261,107,97])))},
{"str to hexstr", {"str to hexstr",
?_test(?assertEqual("74657374", ucp_utils:to_hexstr("test")))}]. ?_test(?assertEqual("74657374", ucp_utils:to_hexstr("test")))}].


Expand Down

0 comments on commit c7fde14

Please sign in to comment.