Skip to content

Test suite hangs when choosing random formula type at DecideSpec #263

@nimec01

Description

@nimec01

validBoundsDecide :: Gen DecideConfig
validBoundsDecide = do
-- formulaType <- elements ["Cnf", "Dnf", "Arbitrary"]
let formulaType = "Arbitrary"
formulaConfig <- case formulaType of
"Cnf" -> FormulaCnf <$> validBoundsCnf
"Dnf" -> FormulaDnf <$> validBoundsCnf
_ -> FormulaArbitrary <$> validBoundsSynTree `suchThat` \SynTreeConfig{..} ->
maxNodes < 30 &&
minAmountOfUniqueAtoms == fromIntegral (length availableAtoms)

The test suite hangs when using the commented line displayed in the code snippet above. We probably also want to use oneof instead of the current (custom) implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions