Skip to content

Instantly share code, notes, and snippets.

@grufino
Last active August 20, 2019 21:13
Show Gist options
  • Save grufino/19226b1cf4c306d8eac4d941b90e5a3f to your computer and use it in GitHub Desktop.
Save grufino/19226b1cf4c306d8eac4d941b90e5a3f to your computer and use it in GitHub Desktop.
property "always returns list of the same size" do
check all size <- integer(0..100),
number_lists <- list_of(number_list(size), min_length: 1, max_length: 100) do
assert length(MissingData.average_list(number_lists)) == length(Enum.random(number_lists))
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment