aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/zwobble/couscous/tests/CompilerTests.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/org/zwobble/couscous/tests/CompilerTests.java')
-rw-r--r--src/test/java/org/zwobble/couscous/tests/CompilerTests.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/java/org/zwobble/couscous/tests/CompilerTests.java b/src/test/java/org/zwobble/couscous/tests/CompilerTests.java
index f03f6ce..7d4a842 100644
--- a/src/test/java/org/zwobble/couscous/tests/CompilerTests.java
+++ b/src/test/java/org/zwobble/couscous/tests/CompilerTests.java
@@ -1,5 +1,6 @@
package org.zwobble.couscous.tests;
+import org.junit.Ignore;
import org.junit.Test;
import org.zwobble.couscous.ast.TypeName;
import org.zwobble.couscous.values.BooleanValue;
@@ -87,6 +88,19 @@ public abstract class CompilerTests {
}
@Test
+ @Ignore("WIP")
+ public void canImplementUserDefinedInterface() throws Exception {
+ assertEquals(
+ value(42),
+ execTestProgram(
+ "implement-user-interface",
+ TypeName.of("com.example.ConstantIntSupplier"),
+ "value",
+ list(),
+ IntegerValue.REF));
+ }
+
+ @Test
public void anonymousClassesWithoutCapture() throws Exception {
assertEquals(
value(42),