You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While attempting to run some tests related to #1049, I discovered that the floating point types don't work with :exhaust. (Apparently they do work with :check, though.)
Cryptol> :m Float
Loading module Cryptol
Loading module Float
Float> :check \x -> fpFromBits (fpToBits`{6,10} x) == x
Using random testing.
Passed 100 tests.
Float> :exhaust \x -> fpFromBits (fpToBits`{6,10} x) == x
The expression is not of a testable type.
Type: Float 6 10 -> Bit
The text was updated successfully, but these errors were encountered:
by enumerating all bitpatterns.
Note, this overcounts somewhat the number of distinct floating point
values there are, since all NaNs are considered identical
as `Float` values. We could be more careful here to avoid
generating more NaN values than required, but I'm not sure it's worth
the effort.
Fixes#1051
While attempting to run some tests related to #1049, I discovered that the floating point types don't work with
:exhaust
. (Apparently they do work with:check
, though.)The text was updated successfully, but these errors were encountered: