Skip to content
Snippets Groups Projects
Commit 2c77129c authored by Adam Knapp's avatar Adam Knapp
Browse files

Merging test for bugfix (issue #421, titan.core#555)


Signed-off-by: default avatarAdam Knapp <adam.knapp@ericsson.com>
parent 606e1f1e
No related branches found
No related tags found
1 merge request!680Merging test for bugfix (issue #421, titan.core#555)
...@@ -257,6 +257,8 @@ Test.control ...@@ -257,6 +257,8 @@ Test.control
HS16977_Test.control HS16977_Test.control
#RAW/IntX #RAW/IntX
IntX.control #ok! 6 pass IntX.control #ok! 6 pass
#RAW/Issue555
Issue555.control
#RAW/Lengthto_Offset: #RAW/Lengthto_Offset:
Lengthto_Offset Lengthto_Offset
#RAW/RAW_bitstring_test: #RAW/RAW_bitstring_test:
......
/******************************************************************************
* Copyright (c) 2000-2021 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
*
* Contributors:
* Gabor, Szalai – initial implementation
*
******************************************************************************/
module Issue555 {
type record MyRec{
MCC mcc,
bitstring bs length(4)
} with {
variant "FIELDORDER(msb)"
}
type hexstring MCC
with {
variant "FIELDLENGTH (3)";
variant "FIELDORDER(msb)"
variant "HEXORDER (high)";
}
type component CT {}
template MyRec t_hex:={
mcc:='042'H,
bs:='0000'B
}
testcase tc_issue555() runs on CT {
var bitstring bdata:='0000010000100000'B
var MyRec res
var integer i:=decvalue(bdata,res)
log(i)
if(i!=0){
setverdict(fail, "decvalue failed")
} else {
log(res)
if(match(res,t_hex)){
setverdict(pass)
} else {
setverdict(fail, "unmatched value")
}
}
}
control {
execute(tc_issue555());
}
} with {
encode "RAW"
}
###############################################################################
# Copyright (c) 2000-2021 Ericsson Telecom AB
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distribution, and is available at
# https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
#
# Contributors:
# Botond, Baranyi
#
###############################################################################
[LOGGING]
LogFile := "Issue555.log"
FileMask := LOG_ALL
ConsoleMask := TTCN_ERROR | TTCN_TESTCASE | TTCN_STATISTICS
LogSourceInfo := Yes
[EXECUTE]
Issue555.control
[TESTPORT_PARAMETERS]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment