/***************************************************
 ** @author   STF 470
 ** @version  0.0.1
 ** @purpose  1:6.2.3.2, verify handling of value list assignment used for initialization of record of values
 ** @verdict  pass accept, ttcn3verdict:pass
 ***************************************************/

// The following requirement is tested:
// When using the value list notation, all elements in the structure shall
// be specified either with a value or the not used symbol "-". The first
// member of the list is assigned to the first element, the second list
// member is assigned to the second element, etc.
module Sem_060203_records_and_sets_of_single_types_008 {

	type component GeneralComp {
	}

	type record of integer RoI;

	testcase TC_Sem_060203_records_and_sets_of_single_types_008() runs on GeneralComp {

		var RoI v_rec := { 0, 1, - };
		if (match(v_rec[0], 0) and match(v_rec[1], 1) and not isbound(v_rec[2])) {
			setverdict(pass);
		}
		else {
			setverdict(fail);
		}
	}

	control {
		execute(TC_Sem_060203_records_and_sets_of_single_types_008());
	}

}
