Package hydra.testing
Class TypeReductionTestCase
- java.lang.Object
-
- hydra.testing.TypeReductionTestCase
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TypeReductionTestCase>
public class TypeReductionTestCase extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<TypeReductionTestCase>
A test case which performs beta reduction on a type (reducing type applications) and compares the result with the expected type- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TypeReductionTestCase(Type input, Type output)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(TypeReductionTestCase other)booleanequals(java.lang.Object other)inthashCode()TypeReductionTestCasewithInput(Type input)TypeReductionTestCasewithOutput(Type 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(TypeReductionTestCase other)
- Specified by:
compareToin interfacejava.lang.Comparable<TypeReductionTestCase>
-
withInput
public TypeReductionTestCase withInput(Type input)
-
withOutput
public TypeReductionTestCase withOutput(Type output)
-
-