Commit ee046b3b authored by Sarah Grebing's avatar Sarah Grebing

Added testcase for assignmenthook change in interprteroptions

parent 7924590f
Pipeline #17633 failed with stages
...@@ -73,5 +73,13 @@ public class KeYInterpreterTest { ...@@ -73,5 +73,13 @@ public class KeYInterpreterTest {
} }
@Test
public void testHookAssignments() throws IOException, ProblemLoaderException {
facade.loadKeyFileSync(new File("src/test/resources/edu/kit/iti/formal/psdbg/interpreter/contraposition/contraposition.key"));
Interpreter<KeyData> i = execute(getClass().getResourceAsStream("contraposition/hookTestScript.kps"));
Assert.assertTrue(i.isStrictMode());
}
} }
script hookTest(){
__STRICT_MODE:= true;
impRight;
}
\ No newline at end of file
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
// //
script autoScript(){ script autoScript(){
//auto; __STRICT_MODE := true;
auto;
} }
script interactive(){ script interactive(){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment