/***************************************************
 ** @author   TTF T003
 ** @version  0.0.1
 ** @purpose  1:6.2.15.6, Verify that it is possible to get a set of values from a map value
 ** @verdict  pass accept, ttcn3verdict:pass
 ***************************************************/

// The following requirement is tested:
// If MapValue is a value of type MapValueType defined as mapfromAtoB then MapValue.to yields a result
// compatible with type set ofB that contains all the values from MapValue. This type can also be
// referenced as MapValueType.to.

module Sem_06021506_accessing_the_values_002 {
	type map from charstring to integer TMap1;
	type component C {}

	testcase TC_Sem_06021506_accessing_the_values_002() runs on C {
		var TMap1 v_map;
		v_map["test"] := 1;
		v_map["xyz"] := 5;
		if (match(v_map.to, { 1, 5 })) {
			setverdict(pass);
		} else {
			setverdict(fail);
		}
	}

	control {
		execute(TC_Sem_06021506_accessing_the_values_002());
	}
}
