Skip to content
Snippets Groups Projects
Commit c9ae184e authored by Cookiebowser's avatar Cookiebowser
Browse files

added more Others-benchmarks and fixed a small thing

parent 76af07af
No related branches found
No related tags found
1 merge request!28Rust support
Showing
with 61 additions and 3 deletions
...@@ -43,7 +43,7 @@ pub struct <machine> { ...@@ -43,7 +43,7 @@ pub struct <machine> {
<if(constants_declarations)><constants_declarations; separator="\n"><endif> <if(constants_declarations)><constants_declarations; separator="\n"><endif>
<sets; separator="\n"> <sets; separator="\n">
<if(forModelChecking)> <if(forModelChecking)>
#[derivative(Hash="ignore", PartialEq="ignore")] <if(transitionCachesDeclaration)>#[derivative(Hash="ignore", PartialEq="ignore")]<endif>
<transitionCachesDeclaration; separator="\n#[derivative(Hash=\"ignore\", PartialEq=\"ignore\")]\n"><endif> <transitionCachesDeclaration; separator="\n#[derivative(Hash=\"ignore\", PartialEq=\"ignore\")]\n"><endif>
} }
......
...@@ -3,6 +3,7 @@ package de.hhu.stups.codegenerator.rust; ...@@ -3,6 +3,7 @@ package de.hhu.stups.codegenerator.rust;
import org.junit.Test; import org.junit.Test;
public class TestOthers extends TestRS{ public class TestOthers extends TestRS{
private final String PROB_OTHER_PATH = "../../../../benchmarks/model_checking/ProB/Other";
@Test @Test
public void test_SetRelationConstructs() throws Exception { public void test_SetRelationConstructs() throws Exception {
testRSMC("SetRelationConstructs", true); testRSMC("SetRelationConstructs", true);
...@@ -10,6 +11,41 @@ public class TestOthers extends TestRS{ ...@@ -10,6 +11,41 @@ public class TestOthers extends TestRS{
@Test @Test
public void test_ArithmeticExpLaws() throws Exception { public void test_ArithmeticExpLaws() throws Exception {
testRSMC("ArithmeticExpLaws", "../../../../benchmarks/model_checking/ProB/Other", true, true); testRSMC("ArithmeticExpLaws", PROB_OTHER_PATH, true, true);
}
@Test
public void test_ArithmeticLaws() throws Exception {
testRSMC("ArithmeticLaws", PROB_OTHER_PATH, true);
}
@Test
public void test_BoolLaws() throws Exception {
testRSMC("BoolLaws", PROB_OTHER_PATH, true);
}
@Test
public void test_BoolLaws_SetCompr() throws Exception {
testRSMC("BoolLaws_SetCompr", PROB_OTHER_PATH, true, true);
}
@Test
public void test_BoolWithArithLaws() throws Exception {
testRSMC("BoolWithArithLaws", PROB_OTHER_PATH, true, true);
}
@Test
public void test_CardinalityLaws() throws Exception {
testRSMC("CardinalityLaws", PROB_OTHER_PATH, true, true);
}
@Test
public void test_CSM() throws Exception {
testRSMC("CSM", PROB_OTHER_PATH, true);
}
@Test
public void test_Doors() throws Exception {
testRSMC("Doors", PROB_OTHER_PATH, true);
} }
} }
...@@ -130,7 +130,8 @@ public class TestRS { ...@@ -130,7 +130,8 @@ public class TestRS {
assertEquals(expectedOutput, result); assertEquals(expectedOutput, result);
} else { } else {
System.out.println("Asserting Success: "); System.out.println("Asserting Success: ");
System.out.println(result); System.out.println("Expected: " + expectedOutput);
System.out.println("Gotten : " + result);
assertTrue(result.contains(expectedOutput)); assertTrue(result.contains(expectedOutput));
} }
cleanUp(newMainFile); cleanUp(newMainFile);
......
MODEL CHECKING SUCCESSFUL
Number of States: 5616
Number of Transitions: 21226
\ No newline at end of file
MODEL CHECKING SUCCESSFUL
Number of States: 8
Number of Transitions: 24
\ No newline at end of file
MODEL CHECKING SUCCESSFUL
Number of States: 1
Number of Transitions: 0
\ No newline at end of file
MODEL CHECKING SUCCESSFUL
Number of States: 64
Number of Transitions: 144
\ No newline at end of file
MODEL CHECKING SUCCESSFUL
Number of States: 340
Number of Transitions: 1228
\ No newline at end of file
MODEL CHECKING SUCCESSFUL
Number of States: 16
Number of Transitions: 21
\ No newline at end of file
MODEL CHECKING SUCCESSFUL
Number of States: 7
Number of Transitions: 49
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment