-
Notifications
You must be signed in to change notification settings - Fork 8
Discuss: NaN and Infinity as results #4
Copy link
Copy link
Open
Description
The current specs assert that a result is Infinity but the JSON spec forbids them.
Numeric values that cannot be represented in the grammar below (such as Infinity and NaN) are not permitted.
describe "two huge numbers should multiply to infinity" do
sample( "var1" => 1.79769313486232e+300, "var2" => 1e+300 ) do
expect( subject.get("result") ).to eq( Float::INFINITY )
end
end
How should we validate results of Float::INFINITY and Float::NAN before we set the result into the event?
Reactions are currently unavailable