Skip to content

Commit

Permalink
Add 'MaxValue' to LiteralGenerator for float and double
Browse files Browse the repository at this point in the history
  • Loading branch information
tanelk committed Aug 23, 2020
1 parent 8c8313c commit 77d63ac
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ object LiteralGenerator {
f <- Gen.oneOf(
Gen.oneOf(
Float.NaN, Float.PositiveInfinity, Float.NegativeInfinity, Float.MinPositiveValue,
0.0f, -0.0f, 1.0f, -1.0f),
Float.MaxValue, 0.0f, -0.0f, 1.0f, -1.0f),
Arbitrary.arbFloat.arbitrary
)
} yield Literal.create(f, FloatType)
Expand All @@ -83,7 +83,7 @@ object LiteralGenerator {
f <- Gen.oneOf(
Gen.oneOf(
Double.NaN, Double.PositiveInfinity, Double.NegativeInfinity, Double.MinPositiveValue,
0.0, -0.0, 1.0, -1.0),
Double.MaxValue, 0.0, -0.0, 1.0, -1.0),
Arbitrary.arbDouble.arbitrary
)
} yield Literal.create(f, DoubleType)
Expand Down

0 comments on commit 77d63ac

Please sign in to comment.