Commit 1bdd1cd0 authored by stancakapost's avatar stancakapost
Browse files

fixed testcases to server their intended purpose

parent 2f9a8c04
......@@ -33,7 +33,7 @@ module NegSem_0901_Communication_ports_004 {
//create a test component
var GeneralComp v_ptc := GeneralComp.create;
connect(self:p1, v_ptc:p1);
map(self:p2, system:p1); // error: v_ptc.p1 is already mapped to SystemComp.p1
map(self:p1, system:p1); // error: v_ptc.p1 is already mapped to SystemComp.p1
setverdict(pass);
}
......
......@@ -20,8 +20,8 @@ module NegSem_0901_Communication_ports_007 {
}
testcase TC_NegSem_0901_Communication_ports_007() runs on GeneralComp system GeneralComp {
map(self:p2, system:p1); // error: p1 and p2 cannot be connected
var GeneralComp s := system;
map(s:p2, system:p1); // error: p1 and p2 cannot be connected
setverdict(pass);
}
......
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