aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/zwobble/couscous/tests/CompilerTests.java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-03-01 21:24:45 +0000
committerMichael Williamson <mike@zwobble.org>2016-03-01 21:24:45 +0000
commitdbe3c6ad7ead5fef7d6dde68c9c53bebe3593fe6 (patch)
tree46a70a1e3ba82a6ba994caef3317f3b60f504e57 /src/test/java/org/zwobble/couscous/tests/CompilerTests.java
parent44e6b9e1f09e57a9abe3d6e31d4b3b6e40b4ee47 (diff)
Get static nested classes working on interpreter
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 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),