Package hydra.testing
Class HoistCaseStatementsTestCase
- java.lang.Object
-
- hydra.testing.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
-
-
Constructor Summary
Constructors Constructor Description HoistCaseStatementsTestCase(Term input, Term output)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(HoistCaseStatementsTestCase other)booleanequals(java.lang.Object other)inthashCode()HoistCaseStatementsTestCasewithInput(Term input)HoistCaseStatementsTestCasewithOutput(Term output)
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(HoistCaseStatementsTestCase other)
- Specified by:
compareToin interfacejava.lang.Comparable<HoistCaseStatementsTestCase>
-
withInput
public HoistCaseStatementsTestCase withInput(Term input)
-
withOutput
public HoistCaseStatementsTestCase withOutput(Term output)
-
-