Skip to content
Browse files

Add UUID v3 to representation and exception tests

  • Loading branch information...
1 parent f9fd3d3 commit 66ecb12e22114fe7a7795296b38fb17f038197ba @avtobiff committed Feb 18, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 test/uuid_tests.erl
View
3 test/uuid_tests.erl
@@ -122,9 +122,11 @@ uuid_binary_test() ->
representation_test() ->
Uuid1 = uuid:uuid1(),
+ Uuid3 = uuid:uuid5(dns, "fqdn.example.com"),
Uuid4 = uuid:uuid4(),
Uuid5 = uuid:uuid5(dns, "fqdn.example.com"),
?assertMatch(Uuid1, uuid:to_binary(uuid:to_string(Uuid1))),
+ ?assertMatch(Uuid3, uuid:to_binary(uuid:to_string(Uuid3))),
?assertMatch(Uuid4, uuid:to_binary(uuid:to_string(Uuid4))),
?assertMatch(Uuid5, uuid:to_binary(uuid:to_string(Uuid5))).
@@ -142,6 +144,7 @@ exceptions_test() ->
?assertMatch(ok, try_badarg(to_binary, [0])),
?assertMatch(ok, try_badarg(to_string, [0])),
?assertMatch(ok, try_badarg(to_string, [0, 0])),
+ ?assertMatch(ok, try_badarg(uuid3, [0, 0])),
?assertMatch(ok, try_badarg(uuid5, [0, 0])).
urn_test() ->

0 comments on commit 66ecb12

Please sign in to comment.
Something went wrong with that request. Please try again.