Unit Testing, Property Testing, Elixir Language, Elixirlang, Refactoring.
Morphix.partiphify!(l, k) assert actual |> Enum.map(fn l -> Enum.count(l) end) |> Enum.sum() == Enum.count(l) end) end Invariant 4: No sublist of the output has a length that differs by more than 1 from any other sublist. test "the lengths of the partitions are within 1 of each other" do k =