Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tlc4b
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
tlc4b
Commits
c57c1f18
Commit
c57c1f18
authored
4 months ago
by
Jan Gruteser
Browse files
Options
Downloads
Patches
Plain Diff
simple label tests
parent
1e91c11d
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/tlc4b/analysis/ConstantsTest.java
+26
-0
26 additions, 0 deletions
src/test/java/de/tlc4b/analysis/ConstantsTest.java
with
26 additions
and
0 deletions
src/test/java/de/tlc4b/analysis/ConstantsTest.java
+
26
−
0
View file @
c57c1f18
...
@@ -148,4 +148,30 @@ public class ConstantsTest {
...
@@ -148,4 +148,30 @@ public class ConstantsTest {
compare
(
expected
,
machine
);
compare
(
expected
,
machine
);
}
}
@Test
public
void
testPropertiesDescPragma
()
throws
Exception
{
String
machine
=
"MACHINE test\n"
+
"CONSTANTS n\n"
+
"PROPERTIES n = 1 /*@desc description*/\n"
+
"END"
;
String
expected
=
"---- MODULE test----\n"
+
"n == 1\n"
+
"======"
;
compare
(
expected
,
machine
);
}
@Test
public
void
testPropertiesLabelAndDescPragma
()
throws
Exception
{
String
machine
=
"MACHINE test\n"
+
"CONSTANTS n\n"
+
"PROPERTIES /*@label lbl1 */ n = 1 /*@desc description*/\n"
+
"END"
;
String
expected
=
"---- MODULE test----\n"
+
"n == 1\n"
+
"======"
;
compare
(
expected
,
machine
);
}
}
}
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