/*****************************************************************
 ** @author   STF 521
 ** @version  0.0.1
 ** @purpose  1:15.9, Ensure that matching a value expression against a template instance which evaluates to the omit matching mechanism shall return false.
 ** @verdict  pass accept, ttcn3verdict:pass
 *****************************************************************/

module Sem_1509_MatchOperation_011 {

type component GeneralComp { }

type set MySet {
	charstring field1,
	boolean field2 optional
}

template MySet mw_receiveTemplate := {
	field1 := pattern "ab*de",
	field2 := omit
}

testcase TC_Sem_1509_MatchOperation_011() runs on GeneralComp {
	var MySet v_value := {
		field1 := "abcde",
		field2 := true
	}

	if (match(v_value, mw_receiveTemplate)) {
		setverdict(fail);
	} else {
		setverdict(pass);
	}
}

control{
    execute(TC_Sem_1509_MatchOperation_011());
}

}