1 |
/**
|
2 |
* ZANavi, Zoff Android Navigation system.
|
3 |
* Copyright (C) 2011-2016 Zoff <zoff@zoff.cc>
|
4 |
*
|
5 |
* This program is free software; you can redistribute it and/or
|
6 |
* modify it under the terms of the GNU General Public License
|
7 |
* version 2 as published by the Free Software Foundation.
|
8 |
*
|
9 |
* This program is distributed in the hope that it will be useful,
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12 |
* GNU General Public License for more details.
|
13 |
*
|
14 |
* You should have received a copy of the GNU General Public License
|
15 |
* along with this program; if not, write to the
|
16 |
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
17 |
* Boston, MA 02110-1301, USA.
|
18 |
*/
|
19 |
|
20 |
|
21 |
void main()
|
22 |
{
|
23 |
int res = 0;
|
24 |
char* r;
|
25 |
r = malloc(10000);
|
26 |
struct navigation *nav;
|
27 |
struct navigation_itm *old;
|
28 |
struct navigation_itm *new;
|
29 |
int delta;
|
30 |
int delta_real;
|
31 |
|
32 |
tests_dbg(0, "-- START UNIT TEST 001 --\n");
|
33 |
|
34 |
res = maneuver_required2(nav, old, new, &delta, &delta_real, &r);
|
35 |
tests_dbg(0, "res=%d\n", res);
|
36 |
|
37 |
tests_dbg(0, "-- END UNIT TEST 001 --\n");
|
38 |
|
39 |
free(r);
|
40 |
}
|
41 |
|
42 |
#ifdef __cplusplus
|
43 |
}
|
44 |
#endif
|
45 |
|
46 |
|