Module logicng

Class FormulaCornerCases


  • public final class FormulaCornerCases
    extends Object
    Creation of formula corner cases.

    Formula corner cases help to cover all cases when writing unit tests with formulas involved.

    Since:
    2.0.0
    Version:
    2.0.0
    • Constructor Detail

      • FormulaCornerCases

        public FormulaCornerCases​(FormulaFactory f)
        Constructs a new corner cases creator.
        Parameters:
        f - the formula factory
    • Method Detail

      • getVariables

        public SortedSet<Variable> getVariables()
        Returns the set of variables used for creating the corner cases.
        Returns:
        the set of variables
      • cornerCases

        public List<Formula> cornerCases()
        Generates corner cases for all operators.
        Returns:
        formulas representing corner cases for all operators