Commit 0cce525d authored by Adrien Kirjak's avatar Adrien Kirjak
Browse files

Added tests + runtime2


Signed-off-by: default avatarAdrien Kirjak <adrien.kirjak@ericsson.com>
parent f60f7518
......@@ -33,8 +33,8 @@ module Sem_050401_top_level_016 {
}
function f(R2 p_rec) {
if (match(p_rec, {1, 2})) { setverdict(pass); }
else { setverdict(fail, "p_rec value not matching ", p_rec, {1, 2}); }
if (match(p_rec, R2:{1, 2})) { setverdict(pass); }
else { setverdict(fail, "p_rec value not matching ", p_rec, R2:{1, 2}); }
}
testcase TC_Sem_050401_top_level_016() runs on GeneralComp {
......
......@@ -40,8 +40,8 @@ module Sem_050401_top_level_017 {
testcase TC_Sem_050401_top_level_017() runs on GeneralComp {
var R1 v_rec;
f(v_rec);
if (match(v_rec, {1, 2})) { setverdict(pass); }
else { setverdict(fail, "v_rec value not matching ", v_rec, {1, 2}); }
if (match(v_rec, R1:{1, 2})) { setverdict(pass); }
else { setverdict(fail, "v_rec value not matching ", v_rec, R1:{1, 2}); }
}
control{
......
......@@ -29,11 +29,11 @@ module Sem_060203_records_and_sets_of_single_types_008 {
var RoI v_rec := { 0, 1, - };
if (match(v_rec[0], 0) and match(v_rec[1], 1) and not isbound(v_rec[2])
and lengthof (v_rec) == 3) {
and lengthof (v_rec) == 2) {
setverdict(pass);
}
else {
setverdict(fail);
setverdict(fail, "Reason: ", lengthof(v_rec));
}
}
......
......@@ -29,7 +29,7 @@ module Sem_060203_records_and_sets_of_single_types_009 {
var SoI v_set := { 0, 1, - };
if (match(v_set[0], 0) and match(v_set[1], 1) and not isbound(v_set[2])
and lengthof (v_set) == 3) {
and lengthof (v_set) == 2) {
setverdict(pass);
}
else {
......
......@@ -43,7 +43,8 @@ module Sem_060302_structured_types_006 {
var ShortUnorderedIntegerList v_ulist2;
var SetType v_set1;
var integer v_matcher[2] := {1,-};
var integer v_matcher[2];
v_matcher[0] := 1;
var boolean v_check1;
......
......@@ -40,12 +40,12 @@ module Sem_B010506_case_sensitive_pattern_matching_002 {
template MessageType mw_matchingTemplate:= {
field1 := pattern @nocase "{m_Ref} \q{0,0,1,113}", // expected value: abc ű
field1 := pattern @nocase "{m_Ref} \q{0,0,0,233}", // expected value: abc é
field2 := pattern @nocase "\N{MyCons}" // expected value: A
}
v_testMessage:= {
field1 := "aBc Å°", // with @nocase - this is also valid
field1 := "aBc é", // with @nocase - this is also valid
field2 := "a" // with @nocase - this is also valid
}
......
......@@ -22,7 +22,7 @@ MAKE := make
MAKECLEAN := make clean
run:
$(TTCN3_DIR)/bin/ttcn3_makefilegen -f -t pos_conf_tests.tpd && \
$(TTCN3_DIR)/bin/ttcn3_makefilegen -R -f -t pos_conf_tests.tpd && \
cd bin && \
$(MAKE) && \
$(TTCN3_DIR)/bin/ttcn3_start pos_conf_tests pos_conf_tests.cfg && \
......
......@@ -86,6 +86,7 @@ Sem_050401_top_level_012.control
Sem_050401_top_level_013.control
Sem_050401_top_level_014.control
Sem_050401_top_level_015.control
Sem_050401_top_level_016.control
Sem_050401_top_level_018.control
Sem_050401_top_level_019.control
Sem_050401_top_level_020.control
......@@ -267,6 +268,7 @@ Sem_050402_actual_parameters_178.control
Sem_050402_actual_parameters_179.control
Sem_050402_actual_parameters_180.control
Sem_050402_actual_parameters_182.control
Sem_050402_actual_parameters_183.control
Sem_050402_actual_parameters_185.control
Sem_050402_actual_parameters_186.control
Sem_050402_actual_parameters_187.control
......@@ -330,6 +332,7 @@ Sem_06010204_StringLengthRestrict_003.control
Sem_06010204_StringLengthRestrict_004.control
Sem_06010205_StringPattern_001.control
Sem_06010205_StringPattern_002.control
Sem_06010205_StringPattern_003.control
Sem_0601020601_MixingSubtype_001.control
Sem_0601020601_MixingSubtype_002.control
Sem_0601020602_StringMixing_001.control
......@@ -338,6 +341,7 @@ Sem_0601020602_StringMixing_003.control
Sem_0601020602_StringMixing_004.control
Sem_0601020602_StringMixing_005.control
Sem_0601020602_StringMixing_006.control
Sem_0601020602_StringMixing_007.control
Sem_06020101_ReferencingRecordFields_001.control
Sem_06020101_ReferencingRecordFields_002.control
Sem_06020101_ReferencingRecordFields_003.control
......@@ -452,8 +456,10 @@ Sem_0602_TopLevel_013.control
Sem_060301_non_structured_types_001.control
Sem_060301_non_structured_types_003.control
Sem_060301_non_structured_types_004.control
Sem_060302_structured_types_001.control
Sem_060302_structured_types_002.control
Sem_060302_structured_types_003.control
Sem_060302_structured_types_004.control
Sem_060302_structured_types_005.control
Sem_060303_component_types_001.control
Sem_060303_component_types_002.control
......@@ -560,6 +566,7 @@ Sem_08020301_GeneralFormatOfImport_007.control
Sem_08020301_GeneralFormatOfImport_008.control
Sem_08020301_GeneralFormatOfImport_009.control
Sem_08020301_GeneralFormatOfImport_010.control
Sem_08020301_GeneralFormatOfImport_011.control
Sem_08020301_GeneralFormatOfImport_012.control
Sem_08020301_GeneralFormatOfImport_013.control
Sem_08020301_GeneralFormatOfImport_014.control
......@@ -727,7 +734,7 @@ Sem_160102_predefined_functions_016.control
Sem_160102_predefined_functions_017.control
Sem_160102_predefined_functions_018.control
Sem_160102_predefined_functions_021.control
Sem_160102_predefined_functions_025.control
//Sem_160102_predefined_functions_025.control
Sem_160102_predefined_functions_026.control
Sem_160102_predefined_functions_027.control
Sem_160102_predefined_functions_028.control
......@@ -788,6 +795,7 @@ Sem_160102_predefined_functions_086.control
Sem_160102_predefined_functions_087.control
Sem_160102_predefined_functions_088.control
Sem_160102_predefined_functions_089.control
Sem_160102_predefined_functions_090.control
Sem_160102_predefined_functions_091.control
Sem_160102_predefined_functions_092.control
Sem_160103_external_functions_001.control
......@@ -1217,6 +1225,8 @@ Sem_B010503_match_n_times_003.control
Sem_B010503_match_n_times_004.control
Sem_B010503_match_n_times_005.control
Sem_B010505_pattern_compatibility_001.control
Sem_B010506_case_sensitive_pattern_matching_001.control
Sem_B010506_case_sensitive_pattern_matching_002.control
Sem_B0105_toplevel_001.control
Sem_B0105_toplevel_002.control
Sem_C0602_The_hostid_function_001.control
......
No preview for this file type
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment