Skip to content

Error when a GreaterThan/LessThan generator cannot be satisfied for an integer gens #276

Closed
@nth-commit

Description

@nth-commit

Should be able to turn on strict overflow checks, catch the overflow exception, and convert it into a GalaxyCheck error so it doesn't crash out of GalaxyCheck itself.

Ex 1.

Gen.Int32().GreaterThan(int.MaxValue) // Error

Ex 2.

from x in Gen.Int32()
from y in Gen.Int32().GreaterThan(x) // Error, eventually... When x generates int.MaxValue

Relevant generators:

  • Gen.Int16()
  • Gen.Int32()
  • Gen.Int64()
  • Gen.Byte()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions