From d5a4fb60e3b62f4dc1b67c83cd62c1a264bb4a12 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 1 Jan 2016 20:00:02 +0000 Subject: Generate variable IDs without Eclipse keys --- src/test/java/org/zwobble/couscous/tests/BackendMethodTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/test/java/org/zwobble/couscous/tests/BackendMethodTests.java') diff --git a/src/test/java/org/zwobble/couscous/tests/BackendMethodTests.java b/src/test/java/org/zwobble/couscous/tests/BackendMethodTests.java index a325dcb..a5a8d2c 100644 --- a/src/test/java/org/zwobble/couscous/tests/BackendMethodTests.java +++ b/src/test/java/org/zwobble/couscous/tests/BackendMethodTests.java @@ -114,8 +114,8 @@ public abstract class BackendMethodTests { @Test public void whileLoopIsExecutedWhileConditionIsTrue() { - LocalVariableDeclarationNode x = localVariableDeclaration("x", "x", IntegerValue.REF, literal(0)); - LocalVariableDeclarationNode y = localVariableDeclaration("y", "y", IntegerValue.REF, literal(2)); + LocalVariableDeclarationNode x = localVariableDeclaration(TestIds.id("x"), "x", IntegerValue.REF, literal(0)); + LocalVariableDeclarationNode y = localVariableDeclaration(TestIds.id("y"), "y", IntegerValue.REF, literal(2)); MethodNode.Builder method = staticMethod("hello") .statement(x) .statement(y) @@ -128,8 +128,8 @@ public abstract class BackendMethodTests { @Test public void returnWillExitWhileLoopEarly() { - LocalVariableDeclarationNode x = localVariableDeclaration("x", "x", IntegerValue.REF, literal(0)); - LocalVariableDeclarationNode y = localVariableDeclaration("y", "y", IntegerValue.REF, literal(2)); + LocalVariableDeclarationNode x = localVariableDeclaration(TestIds.id("x"), "x", IntegerValue.REF, literal(0)); + LocalVariableDeclarationNode y = localVariableDeclaration(TestIds.id("y"), "y", IntegerValue.REF, literal(2)); MethodNode.Builder method = staticMethod("hello") .statement(x) .statement(y) -- cgit v1.2.3