/***************************************************
 ** @author   STF 470
 ** @version  0.0.1
 ** @purpose  1:6.2.7, verify that arrays can be used to specify record of type and they are compatible
 ** @verdict  pass accept, ttcn3verdict:pass
 ***************************************************/

// The following requirement is tested:
// Arrays can be used in TTCN-3 as a shorthand notation to specify record of types.

module Sem_060207_arrays_010 {

	type component GeneralComp {
	}

    type integer MyArrayType1[3];
    type record length (3) of integer MyRecordOfType1;

	testcase TC_Sem_060207_arrays_010() runs on GeneralComp {

        var MyArrayType1 a1 := {7, 8, 9};
        var MyRecordOfType1 r1 := {7, 8, 9};

		if (r1 == a1) {
			setverdict(pass);
		}
		else {
			setverdict(fail);
		}
	}

	control {
		execute(TC_Sem_060207_arrays_010());
	}

}
