aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/zwobble/couscous/tests/CompilerTests.java12
1 files changed, 12 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 3641f33..2560695 100644
--- a/src/test/java/org/zwobble/couscous/tests/CompilerTests.java
+++ b/src/test/java/org/zwobble/couscous/tests/CompilerTests.java
@@ -111,6 +111,18 @@ public abstract class CompilerTests {
}
@Test
+ public void innerClassesWithConstructorArguments() throws Exception {
+ assertEquals(
+ value(42),
+ execTestProgram(
+ "inner-class-with-constructor-args",
+ TypeName.of("com.example.InnerClass"),
+ "run",
+ list(),
+ IntegerValue.REF));
+ }
+
+ @Test
public void canImplementUserDefinedInterface() throws Exception {
assertEquals(
value(42),