diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-04-03 13:38:53 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-04-03 13:38:53 +0100 |
| commit | 3c42c0a7c1196cc290dbcdc55dcb84379ad523e4 (patch) | |
| tree | f746640db075a3d613f21581d0c392b16d024439 /src/test/java/org/zwobble/couscous/tests/CompilerTests.java | |
| parent | 26f7b223ebfcf3e514ffa8c2b81ccaaa7a6605cc (diff) | |
C# backend: Implement for-each loops
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 0099d26..7a60821 100644 --- a/src/test/java/org/zwobble/couscous/tests/CompilerTests.java +++ b/src/test/java/org/zwobble/couscous/tests/CompilerTests.java @@ -85,6 +85,18 @@ public abstract class CompilerTests { } @Test + public void forEach() throws Exception { + assertEquals( + value("abc"), + execTestProgram( + "for-each", + ScalarType.of("com.example.ForEach"), + "value", + list(), + Types.STRING)); + } + + @Test public void staticNestedClasses() throws Exception { assertEquals( value(42), |
