diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-03-01 23:10:04 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-03-03 18:49:34 +0000 |
| commit | 7576a7a0afa1bbb6adf9c8be0ad422d99cab4293 (patch) | |
| tree | ee00ccbbc69864b2774998c3421d0a6e77f24682 /src/test/java/org/zwobble/couscous/tests | |
| parent | 80284eefe7098c42a0b4736c45f622116fb543e0 (diff) | |
Enable nested class generation with existing constructor
Diffstat (limited to 'src/test/java/org/zwobble/couscous/tests')
| -rw-r--r-- | src/test/java/org/zwobble/couscous/tests/CompilerTests.java | 12 |
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), |
