This repository has been archived by the owner on Jul 16, 2024. It is now read-only.
From Discord: Error using fast-check with Arbitrary created by schema: Seeking resolution and guidance #484
Labels
bug-confirmed
Bug report that is confirmed
Summary
The user is encountering an error when using fast-check with an Arbitrary created by a schema. The error specifically mentions that the
fc.float
constraint requires a 32-bit float and suggests usingMath.fround(myDouble)
to convert a double to a 32-bit float. The user provided a schema for anEase
type, which includes a clamp constraint on a number range. They also mentioned trying to useMath.fround
on the min and max values, but the error persisted.Key takeaways:
fc.float
constraint and the requirement for a 32-bit float.Ease
type with a clamp constraint on a number range.Math.fround
on the min and max values.Math.fround
to convert a double to a 32-bit float.Discord thread
https://discord.com/channels/795981131316985866/1163050628386390169
The text was updated successfully, but these errors were encountered: