Commit ae7054e5 authored by stancakapost's avatar stancakapost
Browse files

No commit message

No commit message
parent aa03129d
Loading
Loading
Loading
Loading
+38
Changes for 08_modules/0802_module_definitions_part/080203_importing_from_modules/08020303_importing_groups/Sem_08020303_ImportingGroups_003.ttcn: 38 added lines, 0 removed lines.
Original line number Diff line number Diff line
/*****************************************************************
 ** @author   STF 409
 ** @version  $Rev: 150 $
 ** @purpose  1:8.2.3.2, Ensure that import with exceptions does not exclude imports, but that it is in fact a shortcut notation for explicit imports.
 ** @verdict  pass accept, ttcn3verdict:pass
 *****************************************************************/

module Sem_08020303_ImportingGroups_003 {

import from Sem_08020303_ImportingGroups_003_import {
	group CONST_GROUP.CONST_INNER_GROUP except {
		const c_myconst;
	};
	const all;
}

type component GeneralComp {}

testcase TC_Sem_08020303_ImportingGroups_003() runs on GeneralComp {
	if (c_myconst == 49532) { // c_myconst shall be imported from const all;, the exception must not removed it from the imports.
		setverdict(fail);
	} else {
		setverdict(pass);
	}
}

control{
    execute(TC_Sem_08020303_ImportingGroups_003());
}
}

module Sem_08020303_ImportingGroups_003_import {
	group CONST_GROUP {
		group CONST_INNER_GROUP {
			const integer c_myconst := 43532;
		}
	}
}