From 7086fc85439429556c8b164c546917edb8dee3ca Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 28 Feb 2016 11:04:03 +0000 Subject: Add WIP test for interfaces --- .../java/org/zwobble/couscous/tests/CompilerTests.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/test/java/org/zwobble/couscous/tests/CompilerTests.java') 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; @@ -86,6 +87,19 @@ public abstract class CompilerTests { IntegerValue.REF)); } + @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( -- cgit v1.2.3