Skip to content
Snippets Groups Projects
Verified Commit ed05fef8 authored by Miles Vella's avatar Miles Vella
Browse files

fix renamer not respecting ACTION

parent 0cafd422
No related branches found
No related tags found
No related merge requests found
Pipeline #152439 passed
...@@ -39,6 +39,7 @@ public class Renamer extends DepthFirstAdapter { ...@@ -39,6 +39,7 @@ public class Renamer extends DepthFirstAdapter {
private final HashSet<String> globalNames; private final HashSet<String> globalNames;
private final static Set<String> KEYWORDS = new HashSet<>(); private final static Set<String> KEYWORDS = new HashSet<>();
static { static {
KEYWORDS.add("ACTION");
KEYWORDS.add("ASSUME"); KEYWORDS.add("ASSUME");
KEYWORDS.add("ASSUMPTION"); KEYWORDS.add("ASSUMPTION");
KEYWORDS.add("AXIOM"); KEYWORDS.add("AXIOM");
......
...@@ -6,7 +6,6 @@ import static org.junit.Assert.assertEquals; ...@@ -6,7 +6,6 @@ import static org.junit.Assert.assertEquals;
import org.junit.Test; import org.junit.Test;
public class FixedBugs { public class FixedBugs {
@Test @Test
...@@ -20,4 +19,14 @@ public class FixedBugs { ...@@ -20,4 +19,14 @@ public class FixedBugs {
+ "END"; + "END";
assertEquals(Deadlock, testString(machine)); assertEquals(Deadlock, testString(machine));
} }
@Test
public void testActionIdentifier() throws Exception {
String machine =
"MACHINE Test\n"
+ "CONSTANTS ACTION\n"
+ "PROPERTIES ACTION={1, 2, 3} \n"
+ "END";
assertEquals(NoError, testString(machine));
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment