/***************************************************
 ** @author   STF 572
 ** @version  0.0.1
 ** @purpose  1:6.2, Ensure that mixed list and assignment notation can be used for a record type.
 ** @verdict  pass accept, ttcn3verdict:pass
 ***************************************************/

//The following requirement is tested:
 /*
  * Values of these types (record, set, record of , set of, array) may be given using an explicit assignment notation or a
  * short-hand value list notation or in a mixed list and assignment notation.
 */

module Sem_0602_TopLevel_20
{
    type component GeneralComp {
    }

    type record MyRecord {
        integer field1,
        charstring field2,
        float field3
    }

    testcase TC_Sem_0602_TopLevel_020() runs on GeneralComp {

		var MyRecord v_myRecord := {5, field3 := 3.14, field2 := "ABCD"};    // mixed notation (assignment + list)

        if (match(v_myRecord, {5, "ABCD", 3.14})) {
            setverdict(pass);
        }
        else {
            setverdict(fail);
        }
    }

    control {
        execute(TC_Sem_0602_TopLevel_020());
    }
}