Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Martina Maggio
gps-modeling
Commits
afbfe209
Commit
afbfe209
authored
Feb 27, 2019
by
Claudio Mandrioli
Browse files
added test case for function gps_randomized_cycling
parent
b0503906
Changes
2
Hide whitespace changes
Inline
Side-by-side
matlab/tests/test_gps_randomized_car.m
View file @
afbfe209
...
...
@@ -2,7 +2,7 @@
%purpose: verify that the transition turn_on is taken from initial state
%oracle:
%oracle:
the transition brings in the state cold_start
clear
all
%clear workspace
close
all
...
...
matlab/tests/test_gps_randomized_cycling.m
0 → 100644
View file @
afbfe209
% test case for function gps_randomized_cycling
%purpose: verify that the transition turn_on is taken from initial state
%oracle: the transition brings in the state cold_start
clear
all
%clear workspace
close
all
cd
..
%move to functions directory
%initialize input data
sensor
.
state
=
'no_info'
;
sensor
.
fetchfp
=
1.0
;
sensor
.
geteph
=
Inf
;
sensor
.
ephExp
=
1800.0
;
sensor
.
fp
=
0
;
sensor
.
eph
=
5
;
turn
=
true
;
time
=
0
;
sv
=
5
;
%execute function
sensor
=
gps_randomized_cycling
(
time
,
sensor
,
turn
,
sv
);
cd
tests
%go back to tests directory
%verify output
if
~
(
strcmp
(
sensor
.
state
,
'cold_start'
))
error
(
'error in function gps_randomized_cycling'
)
else
disp
(
'function gps_randomized_ccycling ok'
)
end
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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