Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ITS - Intelligent Transport Systems
ITS
Commits
94ee7f04
Commit
94ee7f04
authored
Oct 11, 2018
by
garciay
Browse files
Add a test case for external functions validation
parent
cc7c4a60
Changes
1
Show whitespace changes
Inline
Side-by-side
ttcn/TestCodec/TestCodec_ExternalFunctions.ttcn
0 → 100644
View file @
94ee7f04
module
TestCodec_ExternalFunctions
{
// LibCommon
import
from
LibCommon_BasicTypesAndValues
all
;
import
from
LibCommon_DataStrings
all
;
// LibItsCommon
import
from
LibItsCommon_Functions
all
;
// TestCodec
import
from
TestCodec_TestAndSystem
all
;
testcase
tc_f_computePositionUsingDistance
()
runs
on
TCType
system
TCType
{
var
Int32
v_latitude
;
var
Int32
v_longitude
;
fx_computePositionUsingDistance
(
300000000
,
400000000
,
8.0
,
300
,
v_latitude
,
v_longitude
);
log
(
"v_latitude= "
,
v_latitude
);
log
(
"v_longitude= "
,
v_longitude
);
if
(
v_latitude
!=
300000359
)
{
setverdict
(
fail
,
"Wrong expected latitude"
);
}
else
if
(
v_longitude
!=
399999281
)
{
setverdict
(
fail
,
"Wrong expected longitude"
);
}
else
{
setverdict
(
pass
);
}
}
control
{
execute
(
tc_f_computePositionUsingDistance
());
}
}
// End of module TestCodec_ExternalFunctions
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment