From 854993655d4318d565226413645268f0885df0cb Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 10 Oct 2015 14:14:47 +0100 Subject: Distinguish boxed and unboxed primitives --- .../org/zwobble/couscous/tests/frontends/java/JavaReaderTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test') diff --git a/src/test/java/org/zwobble/couscous/tests/frontends/java/JavaReaderTests.java b/src/test/java/org/zwobble/couscous/tests/frontends/java/JavaReaderTests.java index 1625c83..06331aa 100644 --- a/src/test/java/org/zwobble/couscous/tests/frontends/java/JavaReaderTests.java +++ b/src/test/java/org/zwobble/couscous/tests/frontends/java/JavaReaderTests.java @@ -5,8 +5,8 @@ import java.nio.file.Files; import org.junit.Test; import org.zwobble.couscous.ast.ExpressionNode; import org.zwobble.couscous.ast.ReturnNode; -import org.zwobble.couscous.ast.TypeName; import org.zwobble.couscous.frontends.java.JavaReader; +import org.zwobble.couscous.values.BooleanValue; import static java.util.Arrays.asList; import static org.junit.Assert.assertEquals; @@ -28,7 +28,7 @@ public class JavaReaderTests { @Test public void canReadInstanceMethodCalls() { assertEquals( - methodCall(literal("hello"), "startsWith", asList(literal("h")), TypeName.of("boolean")), + methodCall(literal("hello"), "startsWith", asList(literal("h")), BooleanValue.REF), readExpression("\"hello\".startsWith(\"h\")")); } -- cgit v1.2.3