/*****************************************************************
 ** @author   STF 470
 ** @version  0.0.1
 ** @purpose  1:22.4, Verify any port.check(receive) behaviour in case of unsuccessful match in standalone statement
 ** @verdict  pass accept, ttcn3verdict:pass
 *****************************************************************/
module Sem_2204_the_check_operation_015 {

	type port P message {
		inout integer;
	}

    type component GeneralComp {
		port P p1, p2;
	}

	altstep a() runs on GeneralComp {
		[] any port.receive {
			setverdict(pass, "As expected, the check operation didn't match");
			stop;
		}
	}
	testcase TC_Sem_2204_the_check_operation_015() runs on GeneralComp {
		activate(a());
		p2.send(integer:1);
        any port.check(receive(integer:(100..200)));
		setverdict(fail, "Incorrect match");
    }

    control {
        execute(TC_Sem_2204_the_check_operation_015(), 5.0);
    }
}