From 7576a7a0afa1bbb6adf9c8be0ad422d99cab4293 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 1 Mar 2016 23:10:04 +0000 Subject: Enable nested class generation with existing constructor --- src/test/java/org/zwobble/couscous/tests/CompilerTests.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/test/java') 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 @@ -110,6 +110,18 @@ public abstract class CompilerTests { IntegerValue.REF)); } + @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( -- cgit v1.2.3