diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-04-22 20:52:22 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-04-22 20:52:22 +0100 |
| commit | 8b80e624f5279b637497e65eb944ad930d522aef (patch) | |
| tree | d9a226479be7db0515b6ee3a9207d674baf3aba8 /src/test | |
| parent | 9da57858d6886d63ddace39030edb5f04850f5d2 (diff) | |
Add WIP test for anonymous class with this reference
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/java/org/zwobble/couscous/tests/CompilerTests.java | 14 |
1 files changed, 14 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 235c7d5..1408ca9 100644 --- a/src/test/java/org/zwobble/couscous/tests/CompilerTests.java +++ b/src/test/java/org/zwobble/couscous/tests/CompilerTests.java @@ -1,5 +1,6 @@ package org.zwobble.couscous.tests; +import org.junit.Ignore; import org.junit.Test; import org.zwobble.couscous.types.ScalarType; import org.zwobble.couscous.types.Types; @@ -157,6 +158,19 @@ public abstract class CompilerTests { } @Test + @Ignore("WIP") + public void anonymousClassesWithThisReference() throws Exception { + assertEquals( + value(42), + execTestProgram( + "anonymous-class-this-reference", + ScalarType.of("com.example.AnonymousClass"), + "value", + list(), + Types.INT)); + } + + @Test public void anonymousClassesWithCapture() throws Exception { assertEquals( value(42), |
