3 XCSoar Glide Computer - http://www.xcsoar.org/
4 Copyright (C) 2000-2013 The XCSoar Project
5 A detailed list of copyright holders can be found in the file "AUTHORS".
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; either version 2
10 of the License, or (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 #include "Task/TaskManager.hpp"
30 bool test_task_mixed(TaskManager
& task_manager
,
31 const Waypoints
&waypoints
);
33 bool test_task_fai(TaskManager
& task_manager
,
34 const Waypoints
&waypoints
);
36 bool test_task_aat(TaskManager
& task_manager
,
37 const Waypoints
&waypoints
);
39 bool test_task_or(TaskManager
& task_manager
,
40 const Waypoints
&waypoints
);
42 bool test_task_dash(TaskManager
& task_manager
,
43 const Waypoints
&waypoints
);
45 bool test_task_manip(TaskManager
& task_manager
,
46 const Waypoints
&waypoints
);
49 * creates a random task of type (RT/AAT/FAI)
50 * changes it to a random type of (RT/AAT/FAI)
51 * mutates and validates the resulting tp types
53 bool test_task_type_manip(TaskManager
& task_manager
,
54 const Waypoints
&waypoints
, unsigned n_points
);
56 bool test_task_fg(TaskManager
& task_manager
,
57 const Waypoints
&waypoints
);
59 bool test_task_random(TaskManager
& task_manager
,
60 const Waypoints
&waypoints
,
61 const unsigned num_points
);
64 * used for testing xcsoar6.1 that only has three types
65 * of tasks RT, AAT, FAI
66 * Generates random task type with valid random
67 * start/finish/intermediate points, sizes etc
69 bool test_task_random_RT_AAT_FAI(TaskManager
& task_manager
,
70 const Waypoints
&waypoints
,
71 const unsigned num_points
);
73 bool test_task(TaskManager
& task_manager
,
74 const Waypoints
&waypoints
,
77 bool test_task_bad(TaskManager
& task_manager
,
78 const Waypoints
&waypoints
);
80 void test_note(const char* text
);
82 void task_report(TaskManager
& task_manager
, const char* text
);
84 const char* task_name(int test_num
);
86 const Waypoint
* random_waypoint(const Waypoints
&waypoints
);