Unit Testing, Property Testing, Elixir Language, Elixirlang, Refactoring.
integer" do k = (1..100) |> Enum.random() [0, 10, 13, 111, 683, 1013] |> Enum.each(fn length -> l = random_list(length) actual = Morphix.partiphify!(l, k) assert Enum.count(actual) == k end) end defp random_list(length) do (0..length) |> Enum.map(fn _ -> random_item() end) end defp random_item() do