Merge branch 'flake-from-int' into 'develop'
Flake: support integers in from_string/1 See merge request pleroma/pleroma!715
This commit is contained in:
commit
155a884300
2 changed files with 5 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ defmodule Pleroma.FlakeIdTest do
|
|||
test "from_string/1" do
|
||||
fake_flake = <<0::integer-size(64), 42::integer-size(64)>>
|
||||
assert from_string("42") == fake_flake
|
||||
assert from_string(42) == fake_flake
|
||||
end
|
||||
|
||||
test "zero or -1 is a null flake" do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue