Skip to content
Snippets Groups Projects
Commit a77d713f authored by dohan's avatar dohan
Browse files

test copying of visualisation definitions (CUSTOM_GRAPH_EDGES, etc.)

parent 3a766df1
No related branches found
No related tags found
No related merge requests found
package de.tla2b.prettyprintb;
import static de.tla2b.util.TestUtil.compare;
import org.junit.Test;
public class SpecialDefinitions {
@Test
public void testVisualisationDefinition() throws Exception {
final String module = "-------------- MODULE Testing ----------------\n"
+ "EXTENDS Naturals \n"
+ "CUSTOM_GRAPH_NODES == 1..10 \n"
+ "CUSTOM_GRAPH_EDGES == 1..10 \n"
+ "=================================";
final String expected = "MACHINE Testing\n"
+ "DEFINITIONS CUSTOM_GRAPH_NODES == 1 .. 10; \n"
+ "CUSTOM_GRAPH_EDGES == 1 .. 10;"
+ "END";
compare(expected, module);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment