Package hydra.testing
Class HoistCaseStatementsTestCase
java.lang.Object
hydra.testing.HoistCaseStatementsTestCase
- All Implemented Interfaces:
Serializable,Comparable<HoistCaseStatementsTestCase>
public class HoistCaseStatementsTestCase
extends Object
implements Serializable, 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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TYPE_
-
INPUT
-
OUTPUT
-
input
The input term -
output
The expected output term with hoisted case statements
-
-
Constructor Details
-
HoistCaseStatementsTestCase
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<HoistCaseStatementsTestCase>
-
withInput
-
withOutput
-