diff options
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 e2800ce..285a51f 100644 --- a/src/test/java/org/zwobble/couscous/tests/CompilerTests.java +++ b/src/test/java/org/zwobble/couscous/tests/CompilerTests.java @@ -87,6 +87,18 @@ public abstract class CompilerTests { } @Test + public void staticNestedClasses() throws Exception { + assertEquals( + value(42), + execTestProgram( + "static-nested-class", + TypeName.of("com.example.StaticNestedClass"), + "value", + list(), + IntegerValue.REF)); + } + + @Test public void canImplementUserDefinedInterface() throws Exception { assertEquals( value(42), |
