/***************************************************
 ** @author   STF 470
 ** @version  0.0.1
 ** @purpose  1:6.2.7, verify handling of missing elements in assignment notation for arrays
 ** @verdict  pass accept, ttcn3verdict:pass
 ***************************************************/

// The following requirement is tested:
// For using the assignment notation for arrays, the rules described in 6.2.3 are
// valid for arrays as well.

module Sem_060207_arrays_003 {

	type component GeneralComp {
	}

    type integer MyArrayType1[3] (1 .. 10);

	testcase TC_Sem_060207_arrays_003() runs on GeneralComp {

		var MyArrayType1 v_array1 := {
			[1] := 1
		};

		if (not isbound(v_array1[0]) and match(v_array1[1], 1)) {
			setverdict(pass);
		}
		else {
			setverdict(fail);
		}

	}

	control {
		execute(TC_Sem_060207_arrays_003());
	}

}
