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

	type port P message {
		inout integer;
	}

    type component GeneralComp {
		port P p;
	}

	testcase TC_Sem_2204_the_check_operation_009() runs on GeneralComp {
		p.send(integer:1);
        alt
		{
        	[] p.check(receive(integer:(100..200))) { setverdict(fail, "Incorrect match"); }
			[] p.receive { setverdict(pass, "As expected, the check operation didn't match"); }
		}
    }

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