From 0bf7fd49d3e25290b43e7df53ef30b8a122ed8f7 Mon Sep 17 00:00:00 2001 From: balaskoa <Jeno.Balasko@ericsson.com> Date: Mon, 4 Nov 2019 14:43:21 +0100 Subject: [PATCH] New testcase for indexing universal charstring and passing it to function as arg Signed-off-by: balaskoa <Jeno.Balasko@ericsson.com> Change-Id: I174e4be3e13b6d1f7c6461059024dd3ad9431532 --- regression_test/ucharstrOper/cstr_content.ttcn | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/regression_test/ucharstrOper/cstr_content.ttcn b/regression_test/ucharstrOper/cstr_content.ttcn index 4e5dc8d6e..946d334f4 100644 --- a/regression_test/ucharstrOper/cstr_content.ttcn +++ b/regression_test/ucharstrOper/cstr_content.ttcn @@ -410,6 +410,16 @@ testcase tc_indexing_HT70680() runs on empty } +function f_ucs(in universal charstring ucs) return universal charstring { + return ucs; +} + +testcase tc_ucs() runs on empty { + var universal charstring vl_ucs1 := char(0,0,0,1) & char(0,0,0,20), vl_ucs2 + vl_ucs2 := f_ucs(vl_ucs1[1]); + if( vl_ucs2 == char(0,0,0,20)) {setverdict(pass)} else { setverdict(fail)} +} + control { execute(tc_charstring_content()); execute(tc_cpp_test()); @@ -417,10 +427,11 @@ control { execute(tc_unichar_utf8_const());//fail execute(tc_unichar_utf8_var()); execute(tc_unichar_utf8_var_hungarian_text()); - //execute(tc_unichar_utf8_mp1()); - //execute(tc_unichar_utf8_mp2()); + execute(tc_unichar_utf8_mp1()); + execute(tc_unichar_utf8_mp2()); execute(tc_unichar_utf8_template()); execute(tc_indexing_HT70680()); + execute(tc_ucs()); } } -- GitLab