aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/zwobble/couscous/tests/CompilerTests.java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-10-30 20:31:41 +0000
committerMichael Williamson <mike@zwobble.org>2016-10-30 20:31:41 +0000
commit76f3ac478316f401a6e55208198201c9a12713cb (patch)
tree52f25b12af802728e1ed9fc56d259ff4d9cd875f /src/test/java/org/zwobble/couscous/tests/CompilerTests.java
parentfee1878340fe2055f9d5b4c52eb2993c06c25f25 (diff)
Support inner-inner-classes
Diffstat (limited to 'src/test/java/org/zwobble/couscous/tests/CompilerTests.java')
-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 495f7ed..838029a 100644
--- a/src/test/java/org/zwobble/couscous/tests/CompilerTests.java
+++ b/src/test/java/org/zwobble/couscous/tests/CompilerTests.java
@@ -133,6 +133,18 @@ public abstract class CompilerTests {
}
@Test
+ public void innerInnerClasses() throws Exception {
+ assertEquals(
+ value(42),
+ execTestProgram(
+ "inner-inner-class",
+ ScalarType.topLevel("com.example.InnerClass"),
+ "run",
+ list(),
+ Types.INT));
+ }
+
+ @Test
public void canImplementUserDefinedInterface() throws Exception {
assertEquals(
value(42),