mirror of
https://github.com/sloanelybutsurely/typeid-elixir.git
synced 2024-11-28 01:42:54 -05:00
add decoding test
NOTE: currently failing, likely an issuein base32 decode
This commit is contained in:
parent
cdd8624662
commit
aa0251fdd1
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue