Skip to content

Commit 79942ff

Browse files
janlAlbaHerrerias
authored andcommitted
feat: use weighted_union to deprioritise NaN and Infinity
1 parent b56e77a commit 79942ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/elixir/test/mango/06_basic_text_prop_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defmodule BasicTextTest do
88
property "test floating point value",
99
numtests: 1_000 do # takes about 10 seconds
1010
MangoDatabase.recreate("/#{@db_name}")
11-
forall f <- union([float(), "NaN", "Infinity"]) do
11+
forall f <- weighted_union([{100, float()}, {1, "NaN"}, {1, "Infinity"}]) do
1212
# create doc with float
1313
:ok == test_float(f)
1414
end

0 commit comments

Comments
 (0)