Package hydra.testing

Class HoistCaseStatementsTestCase

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<HoistCaseStatementsTestCase>

    public class HoistCaseStatementsTestCase
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<HoistCaseStatementsTestCase>
    A test case for the hoistCaseStatements function, which hoists case statements into let bindings, but only when they appear inside a lambda body. This is used for targets like Python which don't support inline match expressions.
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_

        public static final Name TYPE_
      • INPUT

        public static final Name INPUT
      • OUTPUT

        public static final Name OUTPUT
      • input

        public final Term input
        The input term
      • output

        public final Term output
        The expected output term with hoisted case statements
    • Constructor Detail

      • HoistCaseStatementsTestCase

        public HoistCaseStatementsTestCase​(Term input,
                                           Term output)