1 /******************************************************************************
2 * Copyright (c) 2000-2016 Ericsson Telecom AB
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
9 * Adrien Kirjak – initial implementation
12 ** @purpose 1:6.1.2.4, Assign values to list of types restricted charstring.
13 ** @verdict pass accept, ttcn3verdict:pass
14 ***************************************************/
15 module Sem_06010204_StringLengthRestrict_004 {
16 type charstring myStrings1 length(2 .. 4); //length between 2 and 4 characters
17 type charstring myStrings2 length(4); //fixed length 4 characters
18 type charstring myStrings3 length(0 .. infinity); //unlimited character length
20 type component GeneralComp {}
22 testcase TC_Sem_06010204_StringLengthRestrict_004() runs on GeneralComp {
26 v_b1 := "ab"; //2 characters
27 v_b1 := "abc"; //3 characters
28 v_b2 := "efgh"; //fixed 4 characters
29 v_b3 := "abcdefghijklm"; //unlimited
34 execute(TC_Sem_06010204_StringLengthRestrict_004());