Permalink
Browse files

Add new hex string conversion tests

  • Loading branch information...
systra
systra committed Jan 3, 2012
1 parent f462f2a commit c7fde14640267ab34477a451a67b3181e18146de
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/ucp_utils_tests.erl
View
@@ -10,6 +10,10 @@ to_hex_test_() ->
end},
{"list to hexstr",
?_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",
?_test(?assertEqual("74657374", ucp_utils:to_hexstr("test")))}].

0 comments on commit c7fde14

Please sign in to comment.