Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tla2bAST
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
tla2bAST
Commits
a77d713f
Commit
a77d713f
authored
6 years ago
by
dohan
Browse files
Options
Downloads
Patches
Plain Diff
test copying of visualisation definitions (CUSTOM_GRAPH_EDGES, etc.)
parent
3a766df1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/java/de/tla2b/prettyprintb/SpecialDefinitions.java
+24
-0
24 additions, 0 deletions
src/test/java/de/tla2b/prettyprintb/SpecialDefinitions.java
with
24 additions
and
0 deletions
src/test/java/de/tla2b/prettyprintb/SpecialDefinitions.java
0 → 100644
+
24
−
0
View file @
a77d713f
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
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment