Skip to content

Commit

Permalink
Added else tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arminzavada committed Oct 28, 2023
1 parent 7ecd628 commit 524052d
Show file tree
Hide file tree
Showing 7 changed files with 509 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,26 @@ public static Collection<Object[]> data() {
{"src/test/resources/model/if1.xsts", "src/test/resources/property/if1.prop", true,
XstsConfigBuilder.Domain.PRED_CART},

{"src/test/resources/model/crossroads_choice_else.xsts", "src/test/resources/property/cross.prop",
false, XstsConfigBuilder.Domain.PRED_CART},

{"src/test/resources/model/if2.xsts", "src/test/resources/property/if2.prop", false,
XstsConfigBuilder.Domain.EXPL_PRED_COMBINED}
XstsConfigBuilder.Domain.EXPL_PRED_COMBINED},

{"src/test/resources/model/choice-else.xsts", "src/test/resources/property/choice-else1.prop", true,
XstsConfigBuilder.Domain.EXPL_PRED_COMBINED},

{"src/test/resources/model/choice-else.xsts", "src/test/resources/property/choice-else2.prop", false,
XstsConfigBuilder.Domain.EXPL_PRED_COMBINED},

{"src/test/resources/model/choice-else2.xsts", "src/test/resources/property/choice-else1.prop", true,
XstsConfigBuilder.Domain.EXPL_PRED_COMBINED},

{"src/test/resources/model/choice-else2.xsts", "src/test/resources/property/choice-else2.prop", false,
XstsConfigBuilder.Domain.EXPL_PRED_COMBINED},

{"src/test/resources/model/choice-else2.xsts", "src/test/resources/property/choice-else3.prop", true,
XstsConfigBuilder.Domain.EXPL_PRED_COMBINED},
});
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
var x : integer = 0

trans {
choice {
assume (false);
x := 1;
} else {
x := 2;
}
}

init {}

env {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
var x : integer = 0

trans {
choice {
assume (false);
x := 1;
} or {
assume (true);
x := 2;
} else {
x := 3;
}
}

init {}

env {}
Loading

0 comments on commit 524052d

Please sign in to comment.