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
d7958a24
Commit
d7958a24
authored
7 months ago
by
Jan Gruteser
Browse files
Options
Downloads
Patches
Plain Diff
adapt test for NamedInstanceCounterReal
parent
0235f216
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/test/java/de/tla2b/typechecking/InstanceTest.java
+3
-3
3 additions, 3 deletions
src/test/java/de/tla2b/typechecking/InstanceTest.java
src/test/resources/typechecking/modules/NamedInstanceCounterReal.tla
+7
-0
7 additions, 0 deletions
...sources/typechecking/modules/NamedInstanceCounterReal.tla
with
10 additions
and
3 deletions
src/test/java/de/tla2b/typechecking/InstanceTest.java
+
3
−
3
View file @
d7958a24
...
...
@@ -11,10 +11,10 @@ public class InstanceTest {
private
static
final
String
path
=
"src/test/resources/typechecking/modules/"
;
@Test
public
void
TestCounterReal
()
throws
Exception
{
TestTypeChecker
t
=
TestUtil
.
typeCheck
(
path
+
"CounterReal.tla"
);
public
void
TestNamedInstanceCounterReal
()
throws
Exception
{
TestTypeChecker
t
=
TestUtil
.
typeCheck
(
path
+
"NamedInstanceCounterReal.tla"
);
assertEquals
(
"REAL"
,
t
.
getVariableType
(
"c"
));
assertEquals
(
"REAL"
,
t
.
getConstantType
(
"start"
));
assertEquals
(
"REAL"
,
t
.
getVariableType
(
"x"
));
}
@Test
...
...
This diff is collapsed.
Click to expand it.
src/test/resources/typechecking/modules/NamedInstanceCounterReal.tla
0 → 100644
+
7
−
0
View file @
d7958a24
-------------- MODULE NamedInstanceCounterReal ----------------
CONSTANTS start
VARIABLES c
count == INSTANCE CounterReal WITH x <- c
Init == count!Init
Next == count!Next
=================================
\ No newline at end of file
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