diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-03-01 22:52:14 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-03-01 22:52:32 +0000 |
| commit | 3f1af457c1635778554d0388fdb7b77bd43e0241 (patch) | |
| tree | 347ab3cea9c5b111f7ee039ecbd64e8edfdbcf30 /src/test/java/org/zwobble/couscous/tests/CompilerTests.java | |
| parent | 788dbf97dcd1f36caa7559468cee1d3e5c9b6673 (diff) | |
Cobble together limited inner class support
Diffstat (limited to 'src/test/java/org/zwobble/couscous/tests/CompilerTests.java')
| -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 285a51f..3641f33 100644 --- a/src/test/java/org/zwobble/couscous/tests/CompilerTests.java +++ b/src/test/java/org/zwobble/couscous/tests/CompilerTests.java @@ -99,6 +99,18 @@ public abstract class CompilerTests { } @Test + public void innerClasses() throws Exception { + assertEquals( + value(42), + execTestProgram( + "inner-class", + TypeName.of("com.example.InnerClass"), + "run", + list(), + IntegerValue.REF)); + } + + @Test public void canImplementUserDefinedInterface() throws Exception { assertEquals( value(42), |
