/***************************************************
 ** @author   STF 470
 ** @version  0.0.1
 ** @purpose  1:B.1.3.3, Ensure that all from clause operand can be a set of value
 ** @verdict  pass accept, ttcn3verdict:pass
 ***************************************************/

// The following requirement is tested:
// Besides specifying all individual values, it is possible to add all elements of
// a set of template into permutations using an all from clause.
//

module Sem_B010303_permutation_008 {

	type set of integer SoI;
	type record of integer RoI;

	template SoI t_source := { 1, 2 };
	template RoI t_perm1 := { permutation (all from t_source), 5 };
	template RoI t_perm2 := { -1, permutation (0, all from t_source, 3) };


	type component GeneralComp {
	}

	testcase TC_Sem_B010303_permutation_008() runs on GeneralComp {
		if (match({ 2, 1, 5 }, t_perm1) and match({ -1, 1, 0, 2, 3 }, t_perm2)) {
			setverdict(pass);
		} else {
			setverdict(fail);
		}
	}

	control{
	    execute(TC_Sem_B010303_permutation_008());
	}

}
