We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d6bdbe commit 20e720dCopy full SHA for 20e720d
test/statistex_test.exs
@@ -165,6 +165,10 @@ defmodule Statistex.StatistexTest do
165
assert_basic_statistics(stats)
166
assert_mode_in_samples(stats, samples)
167
frequency_assertions(stats, samples)
168
+
169
+ # shuffling values around shouldn't change the results
170
+ shuffled_stats = samples |> Enum.shuffle() |> statistics()
171
+ assert stats == shuffled_stats
172
end
173
174
defp assert_basic_statistics(stats) do
0 commit comments