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
Branches
No related tags found
Loading
Checking pipeline status
......@@ -39,6 +39,7 @@ public class Renamer extends DepthFirstAdapter {
private final HashSet<String> globalNames;
private final static Set<String> KEYWORDS = new HashSet<>();
static {
KEYWORDS.add("ACTION");
KEYWORDS.add("ASSUME");
KEYWORDS.add("ASSUMPTION");
KEYWORDS.add("AXIOM");
......
......@@ -6,7 +6,6 @@ import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class FixedBugs {
@Test
......@@ -20,4 +19,14 @@ public class FixedBugs {
+ "END";
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