Sem_160102_predefined_functions_067.ttcn 1007 Bytes
Newer Older
kovacsa's avatar
kovacsa committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/***************************************************
 ** @author   STF 487
 ** @version  0.0.1
 ** @purpose  1:16.1.2, Ensure that predefined encvalue_unichar function works properly in case of encoding universal charstring
 ** @verdict  pass accept, ttcn3verdict:pass

 ***************************************************/

/* The following requirements are tested:  

 * this test focuses on the predefined functions encvalue_unichar (utf-16 big endian)*/



module Sem_160102_predefined_functions_067 {
    
    type component GeneralComp {

    }

    testcase TC_Sem_160102_predefined_functions_067 () runs on GeneralComp {

    var charstring v_test := "abc";

     //Encoding:  

    var universal charstring v_test_enc_16BE := encvalue_unichar(v_test,"UTF-16BE"); //encode to universal charstring UTF-16 big endian
    setverdict(pass,"Encoded value: ", v_test_enc_16BE);

    }

    control{

        execute(TC_Sem_160102_predefined_functions_067());

    }

}