Unit Testing, Property Testing, Elixir Language, Elixirlang, Refactoring.
that we’ve already done to write this test. test "all the items in the input list are in the output list" do k = (1..100) |> Enum.random() [0, 10, 13, 111, 1013] |> Enum.each(fn length -> l = random_list(length) actual = Morphix.partiphify!(l, k) assert Enum.all?(l, fn item -> Enum.any?(actual, fn