/***************************************************
 ** @author   STF 470
 ** @version  0.0.1
 ** @purpose  1:6.2.3.2, verify handling of index notation applied to set of values on left-hand side
 ** @verdict  pass accept, ttcn3verdict:pass
 ***************************************************/

// The following requirement is tested:
// Indexed value notations can be used on the left-hand side of assignments.
// When it is used at the left hand side, only the value of the identified
// single element is changed, values assigned to other elements already remain
// unchanged.
module Sem_060203_records_and_sets_of_single_types_015 {

	type component GeneralComp {
	}

	type set of integer SoI;

	testcase TC_Sem_060203_records_and_sets_of_single_types_015() runs on GeneralComp {

		var SoI v_set := { 0, 1, 2 };
		v_set[1] := 10;
		if (v_set == { 0, 10, 2} ) {
			setverdict(pass);
		}
		else {
			setverdict(fail);
		}
	}

	control {
		execute(TC_Sem_060203_records_and_sets_of_single_types_015());
	}

}
