From 449c10917348eee52c2d769eb5f6fb7f8ec836b9 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 4 Apr 2016 22:27:50 +0100 Subject: Add WIP test for generic methods --- .../java/org/zwobble/couscous/tests/CompilerTests.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/test/java/org') diff --git a/src/test/java/org/zwobble/couscous/tests/CompilerTests.java b/src/test/java/org/zwobble/couscous/tests/CompilerTests.java index 7a60821..cbf4fb5 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; @@ -216,6 +217,19 @@ public abstract class CompilerTests { Types.INT)); } + @Test + @Ignore("WIP") + public void genericMethods() throws Exception { + assertEquals( + value("two"), + execTestProgram( + "generic-method", + ScalarType.of("com.example.GenericMethod"), + "value", + list(), + Types.STRING)); + } + @Test public void genericInterfacesWithGenericTypeParameterAsReturnType() throws Exception { assertEquals( -- cgit v1.2.3