Unit Testing, Property Testing, Elixir Language, Elixirlang, Refactoring.
Morphix.partiphify!(l, k) assert Enum.count(actual) == k end We could improve the test by covering some more cases, for example, we probably want to handle the empty list and a few numbers that are larger or smaller than our value for k. test "the output list should be the same length as the input