diff --git a/test/type_id_test.exs b/test/type_id_test.exs index 8101f10..4b6a67d 100644 --- a/test/type_id_test.exs +++ b/test/type_id_test.exs @@ -8,4 +8,12 @@ defmodule TypeIDTest do end end + describe "from_string!/1" do + test "parses TypeIDs as defined by the spec" do + tid = TypeID.from_string!("test_01h44had5rfswbvpc383ktj0aa") + assert "test" == TypeID.type(tid) + assert "01890915-34b8-7e78-bdd9-8340e7a9014a" == TypeID.uuid(tid) + end + end + end