Branch data Line data Source code
1 : : /*
2 : : * ----------------- BEGIN LICENSE BLOCK ---------------------------------
3 : : *
4 : : * Copyright (C) 2018-2021 Intel Corporation
5 : : *
6 : : * SPDX-License-Identifier: MIT
7 : : *
8 : : * ----------------- END LICENSE BLOCK -----------------------------------
9 : : */
10 : :
11 : : /*
12 : : * Generated file
13 : : */
14 : :
15 : : #if defined(__clang__) && (__clang_major__ >= 7)
16 : : #pragma GCC diagnostic push
17 : : #pragma GCC diagnostic ignored "-Wself-assign-overloaded"
18 : : #endif
19 : :
20 : : #include <gtest/gtest.h>
21 : : #include <limits>
22 : : #include "ad/map/landmark/TrafficSignType.hpp"
23 : :
24 : 2 : TEST(TrafficSignTypeTests, testFromString)
25 : : {
26 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("INVALID"), ::ad::map::landmark::TrafficSignType::INVALID);
+ - - + -
- - - -
- ]
27 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::INVALID"),
+ - - + -
- - - -
- ]
28 : : ::ad::map::landmark::TrafficSignType::INVALID);
29 : :
30 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("SUPPLEMENT_ARROW_APPLIES_LEFT"),
+ - - + -
- - - -
- ]
31 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_LEFT);
32 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>(
+ - - + -
- - - -
- ]
33 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_LEFT"),
34 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_LEFT);
35 : :
36 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("SUPPLEMENT_ARROW_APPLIES_RIGHT"),
+ - - + -
- - - -
- ]
37 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_RIGHT);
38 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>(
+ - - + -
- - - -
- ]
39 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_RIGHT"),
40 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_RIGHT);
41 : :
42 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("SUPPLEMENT_ARROW_APPLIES_LEFT_RIGHT"),
+ - - + -
- - - -
- ]
43 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_LEFT_RIGHT);
44 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>(
+ - - + -
- - - -
- ]
45 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_LEFT_RIGHT"),
46 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_LEFT_RIGHT);
47 : :
48 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("SUPPLEMENT_ARROW_APPLIES_UP_DOWN"),
+ - - + -
- - - -
- ]
49 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_UP_DOWN);
50 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>(
+ - - + -
- - - -
- ]
51 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_UP_DOWN"),
52 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_UP_DOWN);
53 : :
54 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("SUPPLEMENT_ARROW_APPLIES_LEFT_RIGHT_BICYCLE"),
+ - - + -
- - - -
- ]
55 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_LEFT_RIGHT_BICYCLE);
56 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>(
+ - - + -
- - - -
- ]
57 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_LEFT_RIGHT_BICYCLE"),
58 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_LEFT_RIGHT_BICYCLE);
59 : :
60 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("SUPPLEMENT_ARROW_APPLIES_UP_DOWN_BICYCLE"),
+ - - + -
- - - -
- ]
61 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_UP_DOWN_BICYCLE);
62 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>(
+ - - + -
- - - -
- ]
63 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_UP_DOWN_BICYCLE"),
64 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_UP_DOWN_BICYCLE);
65 : :
66 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("SUPPLEMENT_APPLIES_NEXT_N_KM_TIME"),
+ - - + -
- - - -
- ]
67 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_APPLIES_NEXT_N_KM_TIME);
68 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>(
+ - - + -
- - - -
- ]
69 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_APPLIES_NEXT_N_KM_TIME"),
70 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_APPLIES_NEXT_N_KM_TIME);
71 : :
72 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("SUPPLEMENT_ENDS"),
+ - - + -
- - - -
- ]
73 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_ENDS);
74 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::SUPPLEMENT_ENDS"),
+ - - + -
- - - -
- ]
75 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_ENDS);
76 : :
77 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("SUPPLEMENT_RESIDENTS_ALLOWED"),
+ - - + -
- - - -
- ]
78 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_RESIDENTS_ALLOWED);
79 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>(
+ - - + -
- - - -
- ]
80 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_RESIDENTS_ALLOWED"),
81 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_RESIDENTS_ALLOWED);
82 : :
83 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("SUPPLEMENT_BICYCLE_ALLOWED"),
+ - - + -
- - - -
- ]
84 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_BICYCLE_ALLOWED);
85 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>(
+ - - + -
- - - -
- ]
86 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_BICYCLE_ALLOWED"),
87 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_BICYCLE_ALLOWED);
88 : :
89 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("SUPPLEMENT_MOPED_ALLOWED"),
+ - - + -
- - - -
- ]
90 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_MOPED_ALLOWED);
91 [ + - + - : 1 : ASSERT_EQ(
+ - - + -
- - - -
- ]
92 : : fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::SUPPLEMENT_MOPED_ALLOWED"),
93 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_MOPED_ALLOWED);
94 : :
95 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("SUPPLEMENT_TRAM_ALLOWED"),
+ - - + -
- - - -
- ]
96 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_TRAM_ALLOWED);
97 [ + - + - : 1 : ASSERT_EQ(
+ - - + -
- - - -
- ]
98 : : fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::SUPPLEMENT_TRAM_ALLOWED"),
99 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_TRAM_ALLOWED);
100 : :
101 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("SUPPLEMENT_FORESTAL_ALLOWED"),
+ - - + -
- - - -
- ]
102 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_FORESTAL_ALLOWED);
103 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>(
+ - - + -
- - - -
- ]
104 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_FORESTAL_ALLOWED"),
105 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_FORESTAL_ALLOWED);
106 : :
107 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("SUPPLEMENT_CONSTRUCTION_VEHICLE_ALLOWED"),
+ - - + -
- - - -
- ]
108 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_CONSTRUCTION_VEHICLE_ALLOWED);
109 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>(
+ - - + -
- - - -
- ]
110 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_CONSTRUCTION_VEHICLE_ALLOWED"),
111 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_CONSTRUCTION_VEHICLE_ALLOWED);
112 : :
113 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("SUPPLEMENT_ENVIRONMENT_ZONE_YELLOW_GREEN"),
+ - - + -
- - - -
- ]
114 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_ENVIRONMENT_ZONE_YELLOW_GREEN);
115 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>(
+ - - + -
- - - -
- ]
116 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_ENVIRONMENT_ZONE_YELLOW_GREEN"),
117 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_ENVIRONMENT_ZONE_YELLOW_GREEN);
118 : :
119 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("SUPPLEMENT_RAILWAY_ONLY"),
+ - - + -
- - - -
- ]
120 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_RAILWAY_ONLY);
121 [ + - + - : 1 : ASSERT_EQ(
+ - - + -
- - - -
- ]
122 : : fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::SUPPLEMENT_RAILWAY_ONLY"),
123 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_RAILWAY_ONLY);
124 : :
125 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("SUPPLEMENT_APPLIES_FOR_WEIGHT"),
+ - - + -
- - - -
- ]
126 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_APPLIES_FOR_WEIGHT);
127 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>(
+ - - + -
- - - -
- ]
128 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_APPLIES_FOR_WEIGHT"),
129 : : ::ad::map::landmark::TrafficSignType::SUPPLEMENT_APPLIES_FOR_WEIGHT);
130 : :
131 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("DANGER"), ::ad::map::landmark::TrafficSignType::DANGER);
+ - - + -
- - - -
- ]
132 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::DANGER"),
+ - - + -
- - - -
- ]
133 : : ::ad::map::landmark::TrafficSignType::DANGER);
134 : :
135 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("LANES_MERGING"),
+ - - + -
- - - -
- ]
136 : : ::ad::map::landmark::TrafficSignType::LANES_MERGING);
137 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::LANES_MERGING"),
+ - - + -
- - - -
- ]
138 : : ::ad::map::landmark::TrafficSignType::LANES_MERGING);
139 : :
140 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("CAUTION_PEDESTRIAN"),
+ - - + -
- - - -
- ]
141 : : ::ad::map::landmark::TrafficSignType::CAUTION_PEDESTRIAN);
142 [ + - + - : 1 : ASSERT_EQ(
+ - - + -
- - - -
- ]
143 : : fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::CAUTION_PEDESTRIAN"),
144 : : ::ad::map::landmark::TrafficSignType::CAUTION_PEDESTRIAN);
145 : :
146 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("CAUTION_CHILDREN"),
+ - - + -
- - - -
- ]
147 : : ::ad::map::landmark::TrafficSignType::CAUTION_CHILDREN);
148 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::CAUTION_CHILDREN"),
+ - - + -
- - - -
- ]
149 : : ::ad::map::landmark::TrafficSignType::CAUTION_CHILDREN);
150 : :
151 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("CAUTION_BICYCLE"),
+ - - + -
- - - -
- ]
152 : : ::ad::map::landmark::TrafficSignType::CAUTION_BICYCLE);
153 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::CAUTION_BICYCLE"),
+ - - + -
- - - -
- ]
154 : : ::ad::map::landmark::TrafficSignType::CAUTION_BICYCLE);
155 : :
156 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("CAUTION_ANIMALS"),
+ - - + -
- - - -
- ]
157 : : ::ad::map::landmark::TrafficSignType::CAUTION_ANIMALS);
158 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::CAUTION_ANIMALS"),
+ - - + -
- - - -
- ]
159 : : ::ad::map::landmark::TrafficSignType::CAUTION_ANIMALS);
160 : :
161 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("CAUTION_RAIL_CROSSING_WITH_BARRIER"),
+ - - + -
- - - -
- ]
162 : : ::ad::map::landmark::TrafficSignType::CAUTION_RAIL_CROSSING_WITH_BARRIER);
163 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>(
+ - - + -
- - - -
- ]
164 : : "::ad::map::landmark::TrafficSignType::CAUTION_RAIL_CROSSING_WITH_BARRIER"),
165 : : ::ad::map::landmark::TrafficSignType::CAUTION_RAIL_CROSSING_WITH_BARRIER);
166 : :
167 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("CAUTION_RAIL_CROSSING"),
+ - - + -
- - - -
- ]
168 : : ::ad::map::landmark::TrafficSignType::CAUTION_RAIL_CROSSING);
169 [ + - + - : 1 : ASSERT_EQ(
+ - - + -
- - - -
- ]
170 : : fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::CAUTION_RAIL_CROSSING"),
171 : : ::ad::map::landmark::TrafficSignType::CAUTION_RAIL_CROSSING);
172 : :
173 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("YIELD_TRAIN"),
+ - - + -
- - - -
- ]
174 : : ::ad::map::landmark::TrafficSignType::YIELD_TRAIN);
175 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::YIELD_TRAIN"),
+ - - + -
- - - -
- ]
176 : : ::ad::map::landmark::TrafficSignType::YIELD_TRAIN);
177 : :
178 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("YIELD"), ::ad::map::landmark::TrafficSignType::YIELD);
+ - - + -
- - - -
- ]
179 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::YIELD"),
+ - - + -
- - - -
- ]
180 : : ::ad::map::landmark::TrafficSignType::YIELD);
181 : :
182 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("STOP"), ::ad::map::landmark::TrafficSignType::STOP);
+ - - + -
- - - -
- ]
183 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::STOP"),
+ - - + -
- - - -
- ]
184 : : ::ad::map::landmark::TrafficSignType::STOP);
185 : :
186 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("REQUIRED_RIGHT_TURN"),
+ - - + -
- - - -
- ]
187 : : ::ad::map::landmark::TrafficSignType::REQUIRED_RIGHT_TURN);
188 [ + - + - : 1 : ASSERT_EQ(
+ - - + -
- - - -
- ]
189 : : fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::REQUIRED_RIGHT_TURN"),
190 : : ::ad::map::landmark::TrafficSignType::REQUIRED_RIGHT_TURN);
191 : :
192 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("REQUIRED_LEFT_TURN"),
+ - - + -
- - - -
- ]
193 : : ::ad::map::landmark::TrafficSignType::REQUIRED_LEFT_TURN);
194 [ + - + - : 1 : ASSERT_EQ(
+ - - + -
- - - -
- ]
195 : : fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::REQUIRED_LEFT_TURN"),
196 : : ::ad::map::landmark::TrafficSignType::REQUIRED_LEFT_TURN);
197 : :
198 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("REQUIRED_STRAIGHT"),
+ - - + -
- - - -
- ]
199 : : ::ad::map::landmark::TrafficSignType::REQUIRED_STRAIGHT);
200 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::REQUIRED_STRAIGHT"),
+ - - + -
- - - -
- ]
201 : : ::ad::map::landmark::TrafficSignType::REQUIRED_STRAIGHT);
202 : :
203 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("REQUIRED_STRAIGHT_OR_RIGHT_TURN"),
+ - - + -
- - - -
- ]
204 : : ::ad::map::landmark::TrafficSignType::REQUIRED_STRAIGHT_OR_RIGHT_TURN);
205 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>(
+ - - + -
- - - -
- ]
206 : : "::ad::map::landmark::TrafficSignType::REQUIRED_STRAIGHT_OR_RIGHT_TURN"),
207 : : ::ad::map::landmark::TrafficSignType::REQUIRED_STRAIGHT_OR_RIGHT_TURN);
208 : :
209 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("REQUIRED_STRAIGHT_OR_LEFT_TURN"),
+ - - + -
- - - -
- ]
210 : : ::ad::map::landmark::TrafficSignType::REQUIRED_STRAIGHT_OR_LEFT_TURN);
211 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>(
+ - - + -
- - - -
- ]
212 : : "::ad::map::landmark::TrafficSignType::REQUIRED_STRAIGHT_OR_LEFT_TURN"),
213 : : ::ad::map::landmark::TrafficSignType::REQUIRED_STRAIGHT_OR_LEFT_TURN);
214 : :
215 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("ROUNDABOUT"),
+ - - + -
- - - -
- ]
216 : : ::ad::map::landmark::TrafficSignType::ROUNDABOUT);
217 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::ROUNDABOUT"),
+ - - + -
- - - -
- ]
218 : : ::ad::map::landmark::TrafficSignType::ROUNDABOUT);
219 : :
220 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("PASS_RIGHT"),
+ - - + -
- - - -
- ]
221 : : ::ad::map::landmark::TrafficSignType::PASS_RIGHT);
222 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::PASS_RIGHT"),
+ - - + -
- - - -
- ]
223 : : ::ad::map::landmark::TrafficSignType::PASS_RIGHT);
224 : :
225 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("PASS_LEFT"),
+ - - + -
- - - -
- ]
226 : : ::ad::map::landmark::TrafficSignType::PASS_LEFT);
227 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::PASS_LEFT"),
+ - - + -
- - - -
- ]
228 : : ::ad::map::landmark::TrafficSignType::PASS_LEFT);
229 : :
230 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("BYBICLE_PATH"),
+ - - + -
- - - -
- ]
231 : : ::ad::map::landmark::TrafficSignType::BYBICLE_PATH);
232 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::BYBICLE_PATH"),
+ - - + -
- - - -
- ]
233 : : ::ad::map::landmark::TrafficSignType::BYBICLE_PATH);
234 : :
235 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("FOOTWALK"),
+ - - + -
- - - -
- ]
236 : : ::ad::map::landmark::TrafficSignType::FOOTWALK);
237 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::FOOTWALK"),
+ - - + -
- - - -
- ]
238 : : ::ad::map::landmark::TrafficSignType::FOOTWALK);
239 : :
240 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("FOOTWALK_BICYCLE_SHARED"),
+ - - + -
- - - -
- ]
241 : : ::ad::map::landmark::TrafficSignType::FOOTWALK_BICYCLE_SHARED);
242 [ + - + - : 1 : ASSERT_EQ(
+ - - + -
- - - -
- ]
243 : : fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::FOOTWALK_BICYCLE_SHARED"),
244 : : ::ad::map::landmark::TrafficSignType::FOOTWALK_BICYCLE_SHARED);
245 : :
246 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("FOOTWALK_BICYCLE_SEP_RIGHT"),
+ - - + -
- - - -
- ]
247 : : ::ad::map::landmark::TrafficSignType::FOOTWALK_BICYCLE_SEP_RIGHT);
248 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>(
+ - - + -
- - - -
- ]
249 : : "::ad::map::landmark::TrafficSignType::FOOTWALK_BICYCLE_SEP_RIGHT"),
250 : : ::ad::map::landmark::TrafficSignType::FOOTWALK_BICYCLE_SEP_RIGHT);
251 : :
252 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("FOOTWALK_BICYCLE_SEP_LEFT"),
+ - - + -
- - - -
- ]
253 : : ::ad::map::landmark::TrafficSignType::FOOTWALK_BICYCLE_SEP_LEFT);
254 [ + - + - : 1 : ASSERT_EQ(
+ - - + -
- - - -
- ]
255 : : fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::FOOTWALK_BICYCLE_SEP_LEFT"),
256 : : ::ad::map::landmark::TrafficSignType::FOOTWALK_BICYCLE_SEP_LEFT);
257 : :
258 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("PEDESTRIAN_AREA_BEGIN"),
+ - - + -
- - - -
- ]
259 : : ::ad::map::landmark::TrafficSignType::PEDESTRIAN_AREA_BEGIN);
260 [ + - + - : 1 : ASSERT_EQ(
+ - - + -
- - - -
- ]
261 : : fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::PEDESTRIAN_AREA_BEGIN"),
262 : : ::ad::map::landmark::TrafficSignType::PEDESTRIAN_AREA_BEGIN);
263 : :
264 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("ACCESS_FORBIDDEN"),
+ - - + -
- - - -
- ]
265 : : ::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN);
266 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN"),
+ - - + -
- - - -
- ]
267 : : ::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN);
268 : :
269 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("ACCESS_FORBIDDEN_TRUCKS"),
+ - - + -
- - - -
- ]
270 : : ::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_TRUCKS);
271 [ + - + - : 1 : ASSERT_EQ(
+ - - + -
- - - -
- ]
272 : : fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_TRUCKS"),
273 : : ::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_TRUCKS);
274 : :
275 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("ACCESS_FORBIDDEN_BICYCLE"),
+ - - + -
- - - -
- ]
276 : : ::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_BICYCLE);
277 [ + - + - : 1 : ASSERT_EQ(
+ - - + -
- - - -
- ]
278 : : fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_BICYCLE"),
279 : : ::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_BICYCLE);
280 : :
281 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("ACCESS_FORBIDDEN_MOTORVEHICLES"),
+ - - + -
- - - -
- ]
282 : : ::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_MOTORVEHICLES);
283 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>(
+ - - + -
- - - -
- ]
284 : : "::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_MOTORVEHICLES"),
285 : : ::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_MOTORVEHICLES);
286 : :
287 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("ACCESS_FORBIDDEN_WEIGHT"),
+ - - + -
- - - -
- ]
288 : : ::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_WEIGHT);
289 [ + - + - : 1 : ASSERT_EQ(
+ - - + -
- - - -
- ]
290 : : fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_WEIGHT"),
291 : : ::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_WEIGHT);
292 : :
293 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("ACCESS_FORBIDDEN_WIDTH"),
+ - - + -
- - - -
- ]
294 : : ::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_WIDTH);
295 [ + - + - : 1 : ASSERT_EQ(
+ - - + -
- - - -
- ]
296 : : fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_WIDTH"),
297 : : ::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_WIDTH);
298 : :
299 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("ACCESS_FORBIDDEN_HEIGHT"),
+ - - + -
- - - -
- ]
300 : : ::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_HEIGHT);
301 [ + - + - : 1 : ASSERT_EQ(
+ - - + -
- - - -
- ]
302 : : fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_HEIGHT"),
303 : : ::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_HEIGHT);
304 : :
305 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("ACCESS_FORBIDDEN_WRONG_DIR"),
+ - - + -
- - - -
- ]
306 : : ::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_WRONG_DIR);
307 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>(
+ - - + -
- - - -
- ]
308 : : "::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_WRONG_DIR"),
309 : : ::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_WRONG_DIR);
310 : :
311 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("ENVIORNMENT_ZONE_BEGIN"),
+ - - + -
- - - -
- ]
312 : : ::ad::map::landmark::TrafficSignType::ENVIORNMENT_ZONE_BEGIN);
313 [ + - + - : 1 : ASSERT_EQ(
+ - - + -
- - - -
- ]
314 : : fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::ENVIORNMENT_ZONE_BEGIN"),
315 : : ::ad::map::landmark::TrafficSignType::ENVIORNMENT_ZONE_BEGIN);
316 : :
317 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("ENVIORNMENT_ZONE_END"),
+ - - + -
- - - -
- ]
318 : : ::ad::map::landmark::TrafficSignType::ENVIORNMENT_ZONE_END);
319 [ + - + - : 1 : ASSERT_EQ(
+ - - + -
- - - -
- ]
320 : : fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::ENVIORNMENT_ZONE_END"),
321 : : ::ad::map::landmark::TrafficSignType::ENVIORNMENT_ZONE_END);
322 : :
323 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("MAX_SPEED"),
+ - - + -
- - - -
- ]
324 : : ::ad::map::landmark::TrafficSignType::MAX_SPEED);
325 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::MAX_SPEED"),
+ - - + -
- - - -
- ]
326 : : ::ad::map::landmark::TrafficSignType::MAX_SPEED);
327 : :
328 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("SPEED_ZONE_30_BEGIN"),
+ - - + -
- - - -
- ]
329 : : ::ad::map::landmark::TrafficSignType::SPEED_ZONE_30_BEGIN);
330 [ + - + - : 1 : ASSERT_EQ(
+ - - + -
- - - -
- ]
331 : : fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::SPEED_ZONE_30_BEGIN"),
332 : : ::ad::map::landmark::TrafficSignType::SPEED_ZONE_30_BEGIN);
333 : :
334 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("SPEED_ZONE_30_END"),
+ - - + -
- - - -
- ]
335 : : ::ad::map::landmark::TrafficSignType::SPEED_ZONE_30_END);
336 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::SPEED_ZONE_30_END"),
+ - - + -
- - - -
- ]
337 : : ::ad::map::landmark::TrafficSignType::SPEED_ZONE_30_END);
338 : :
339 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("HAS_WAY_NEXT_INTERSECTION"),
+ - - + -
- - - -
- ]
340 : : ::ad::map::landmark::TrafficSignType::HAS_WAY_NEXT_INTERSECTION);
341 [ + - + - : 1 : ASSERT_EQ(
+ - - + -
- - - -
- ]
342 : : fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::HAS_WAY_NEXT_INTERSECTION"),
343 : : ::ad::map::landmark::TrafficSignType::HAS_WAY_NEXT_INTERSECTION);
344 : :
345 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("PRIORITY_WAY"),
+ - - + -
- - - -
- ]
346 : : ::ad::map::landmark::TrafficSignType::PRIORITY_WAY);
347 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::PRIORITY_WAY"),
+ - - + -
- - - -
- ]
348 : : ::ad::map::landmark::TrafficSignType::PRIORITY_WAY);
349 : :
350 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("CITY_BEGIN"),
+ - - + -
- - - -
- ]
351 : : ::ad::map::landmark::TrafficSignType::CITY_BEGIN);
352 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::CITY_BEGIN"),
+ - - + -
- - - -
- ]
353 : : ::ad::map::landmark::TrafficSignType::CITY_BEGIN);
354 : :
355 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("CITY_END"),
+ - - + -
- - - -
- ]
356 : : ::ad::map::landmark::TrafficSignType::CITY_END);
357 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::CITY_END"),
+ - - + -
- - - -
- ]
358 : : ::ad::map::landmark::TrafficSignType::CITY_END);
359 : :
360 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("MOTORWAY_BEGIN"),
+ - - + -
- - - -
- ]
361 : : ::ad::map::landmark::TrafficSignType::MOTORWAY_BEGIN);
362 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::MOTORWAY_BEGIN"),
+ - - + -
- - - -
- ]
363 : : ::ad::map::landmark::TrafficSignType::MOTORWAY_BEGIN);
364 : :
365 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("MOTORWAY_END"),
+ - - + -
- - - -
- ]
366 : : ::ad::map::landmark::TrafficSignType::MOTORWAY_END);
367 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::MOTORWAY_END"),
+ - - + -
- - - -
- ]
368 : : ::ad::map::landmark::TrafficSignType::MOTORWAY_END);
369 : :
370 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("MOTORVEHICLE_BEGIN"),
+ - - + -
- - - -
- ]
371 : : ::ad::map::landmark::TrafficSignType::MOTORVEHICLE_BEGIN);
372 [ + - + - : 1 : ASSERT_EQ(
+ - - + -
- - - -
- ]
373 : : fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::MOTORVEHICLE_BEGIN"),
374 : : ::ad::map::landmark::TrafficSignType::MOTORVEHICLE_BEGIN);
375 : :
376 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("MOTORVEHICLE_END"),
+ - - + -
- - - -
- ]
377 : : ::ad::map::landmark::TrafficSignType::MOTORVEHICLE_END);
378 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::MOTORVEHICLE_END"),
+ - - + -
- - - -
- ]
379 : : ::ad::map::landmark::TrafficSignType::MOTORVEHICLE_END);
380 : :
381 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("INFO_MOTORWAY_INFO"),
+ - - + -
- - - -
- ]
382 : : ::ad::map::landmark::TrafficSignType::INFO_MOTORWAY_INFO);
383 [ + - + - : 1 : ASSERT_EQ(
+ - - + -
- - - -
- ]
384 : : fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::INFO_MOTORWAY_INFO"),
385 : : ::ad::map::landmark::TrafficSignType::INFO_MOTORWAY_INFO);
386 : :
387 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("CUL_DE_SAC"),
+ - - + -
- - - -
- ]
388 : : ::ad::map::landmark::TrafficSignType::CUL_DE_SAC);
389 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::CUL_DE_SAC"),
+ - - + -
- - - -
- ]
390 : : ::ad::map::landmark::TrafficSignType::CUL_DE_SAC);
391 : :
392 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("CUL_DE_SAC_EXCEPT_PED_BICYCLE"),
+ - - + -
- - - -
- ]
393 : : ::ad::map::landmark::TrafficSignType::CUL_DE_SAC_EXCEPT_PED_BICYCLE);
394 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>(
+ - - + -
- - - -
- ]
395 : : "::ad::map::landmark::TrafficSignType::CUL_DE_SAC_EXCEPT_PED_BICYCLE"),
396 : : ::ad::map::landmark::TrafficSignType::CUL_DE_SAC_EXCEPT_PED_BICYCLE);
397 : :
398 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("INFO_NUMBER_OF_AUTOBAHN"),
+ - - + -
- - - -
- ]
399 : : ::ad::map::landmark::TrafficSignType::INFO_NUMBER_OF_AUTOBAHN);
400 [ + - + - : 1 : ASSERT_EQ(
+ - - + -
- - - -
- ]
401 : : fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::INFO_NUMBER_OF_AUTOBAHN"),
402 : : ::ad::map::landmark::TrafficSignType::INFO_NUMBER_OF_AUTOBAHN);
403 : :
404 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("DIRECTION_TURN_TO_AUTOBAHN"),
+ - - + -
- - - -
- ]
405 : : ::ad::map::landmark::TrafficSignType::DIRECTION_TURN_TO_AUTOBAHN);
406 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>(
+ - - + -
- - - -
- ]
407 : : "::ad::map::landmark::TrafficSignType::DIRECTION_TURN_TO_AUTOBAHN"),
408 : : ::ad::map::landmark::TrafficSignType::DIRECTION_TURN_TO_AUTOBAHN);
409 : :
410 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("DIRECTION_TURN_TO_LOCAL"),
+ - - + -
- - - -
- ]
411 : : ::ad::map::landmark::TrafficSignType::DIRECTION_TURN_TO_LOCAL);
412 [ + - + - : 1 : ASSERT_EQ(
+ - - + -
- - - -
- ]
413 : : fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::DIRECTION_TURN_TO_LOCAL"),
414 : : ::ad::map::landmark::TrafficSignType::DIRECTION_TURN_TO_LOCAL);
415 : :
416 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("DESTINATION_BOARD"),
+ - - + -
- - - -
- ]
417 : : ::ad::map::landmark::TrafficSignType::DESTINATION_BOARD);
418 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::DESTINATION_BOARD"),
+ - - + -
- - - -
- ]
419 : : ::ad::map::landmark::TrafficSignType::DESTINATION_BOARD);
420 : :
421 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("FREE_TEXT"),
+ - - + -
- - - -
- ]
422 : : ::ad::map::landmark::TrafficSignType::FREE_TEXT);
423 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::FREE_TEXT"),
+ - - + -
- - - -
- ]
424 : : ::ad::map::landmark::TrafficSignType::FREE_TEXT);
425 : :
426 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("UNKNOWN"), ::ad::map::landmark::TrafficSignType::UNKNOWN);
+ - - + -
- - - -
- ]
427 [ + - + - : 1 : ASSERT_EQ(fromString<::ad::map::landmark::TrafficSignType>("::ad::map::landmark::TrafficSignType::UNKNOWN"),
+ - - + -
- - - -
- ]
428 : : ::ad::map::landmark::TrafficSignType::UNKNOWN);
429 : :
430 [ + - + - : 4 : EXPECT_ANY_THROW({ fromString<::ad::map::landmark::TrafficSignType>("NOT A VALID ENUM LITERAL"); });
+ - + - -
+ - + - -
- - ]
431 : : }
432 : :
433 : 2 : TEST(TrafficSignTypeTests, testToString)
434 : : {
435 : 1 : int32_t minValue = std::numeric_limits<int32_t>::max();
436 : 1 : int32_t maxValue = std::numeric_limits<int32_t>::min();
437 : :
438 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::INVALID), "::ad::map::landmark::TrafficSignType::INVALID");
- + - - -
- - - ]
439 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::INVALID));
440 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::INVALID));
441 : :
442 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_LEFT),
- + - - -
- - - ]
443 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_LEFT");
444 : : minValue
445 : 1 : = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_LEFT));
446 : : maxValue
447 : 1 : = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_LEFT));
448 : :
449 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_RIGHT),
- + - - -
- - - ]
450 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_RIGHT");
451 : : minValue
452 : 1 : = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_RIGHT));
453 : : maxValue
454 : 1 : = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_RIGHT));
455 : :
456 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_LEFT_RIGHT),
- + - - -
- - - ]
457 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_LEFT_RIGHT");
458 : 1 : minValue = std::min(minValue,
459 : 1 : static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_LEFT_RIGHT));
460 : 1 : maxValue = std::max(maxValue,
461 : 1 : static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_LEFT_RIGHT));
462 : :
463 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_UP_DOWN),
- + - - -
- - - ]
464 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_UP_DOWN");
465 : : minValue
466 : 1 : = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_UP_DOWN));
467 : : maxValue
468 : 1 : = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_UP_DOWN));
469 : :
470 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_LEFT_RIGHT_BICYCLE),
- + - - -
- - - ]
471 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_LEFT_RIGHT_BICYCLE");
472 : 1 : minValue = std::min(
473 : 1 : minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_LEFT_RIGHT_BICYCLE));
474 : 1 : maxValue = std::max(
475 : 1 : maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_LEFT_RIGHT_BICYCLE));
476 : :
477 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_UP_DOWN_BICYCLE),
- + - - -
- - - ]
478 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_UP_DOWN_BICYCLE");
479 : 1 : minValue = std::min(
480 : 1 : minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_UP_DOWN_BICYCLE));
481 : 1 : maxValue = std::max(
482 : 1 : maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_ARROW_APPLIES_UP_DOWN_BICYCLE));
483 : :
484 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::SUPPLEMENT_APPLIES_NEXT_N_KM_TIME),
- + - - -
- - - ]
485 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_APPLIES_NEXT_N_KM_TIME");
486 : : minValue
487 : 1 : = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_APPLIES_NEXT_N_KM_TIME));
488 : : maxValue
489 : 1 : = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_APPLIES_NEXT_N_KM_TIME));
490 : :
491 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::SUPPLEMENT_ENDS),
- + - - -
- - - ]
492 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_ENDS");
493 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_ENDS));
494 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_ENDS));
495 : :
496 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::SUPPLEMENT_RESIDENTS_ALLOWED),
- + - - -
- - - ]
497 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_RESIDENTS_ALLOWED");
498 : : minValue
499 : 1 : = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_RESIDENTS_ALLOWED));
500 : : maxValue
501 : 1 : = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_RESIDENTS_ALLOWED));
502 : :
503 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::SUPPLEMENT_BICYCLE_ALLOWED),
- + - - -
- - - ]
504 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_BICYCLE_ALLOWED");
505 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_BICYCLE_ALLOWED));
506 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_BICYCLE_ALLOWED));
507 : :
508 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::SUPPLEMENT_MOPED_ALLOWED),
- + - - -
- - - ]
509 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_MOPED_ALLOWED");
510 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_MOPED_ALLOWED));
511 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_MOPED_ALLOWED));
512 : :
513 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::SUPPLEMENT_TRAM_ALLOWED),
- + - - -
- - - ]
514 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_TRAM_ALLOWED");
515 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_TRAM_ALLOWED));
516 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_TRAM_ALLOWED));
517 : :
518 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::SUPPLEMENT_FORESTAL_ALLOWED),
- + - - -
- - - ]
519 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_FORESTAL_ALLOWED");
520 : : minValue
521 : 1 : = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_FORESTAL_ALLOWED));
522 : : maxValue
523 : 1 : = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_FORESTAL_ALLOWED));
524 : :
525 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::SUPPLEMENT_CONSTRUCTION_VEHICLE_ALLOWED),
- + - - -
- - - ]
526 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_CONSTRUCTION_VEHICLE_ALLOWED");
527 : 1 : minValue = std::min(
528 : 1 : minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_CONSTRUCTION_VEHICLE_ALLOWED));
529 : 1 : maxValue = std::max(
530 : 1 : maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_CONSTRUCTION_VEHICLE_ALLOWED));
531 : :
532 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::SUPPLEMENT_ENVIRONMENT_ZONE_YELLOW_GREEN),
- + - - -
- - - ]
533 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_ENVIRONMENT_ZONE_YELLOW_GREEN");
534 : 1 : minValue = std::min(
535 : 1 : minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_ENVIRONMENT_ZONE_YELLOW_GREEN));
536 : 1 : maxValue = std::max(
537 : 1 : maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_ENVIRONMENT_ZONE_YELLOW_GREEN));
538 : :
539 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::SUPPLEMENT_RAILWAY_ONLY),
- + - - -
- - - ]
540 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_RAILWAY_ONLY");
541 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_RAILWAY_ONLY));
542 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_RAILWAY_ONLY));
543 : :
544 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::SUPPLEMENT_APPLIES_FOR_WEIGHT),
- + - - -
- - - ]
545 : : "::ad::map::landmark::TrafficSignType::SUPPLEMENT_APPLIES_FOR_WEIGHT");
546 : : minValue
547 : 1 : = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_APPLIES_FOR_WEIGHT));
548 : : maxValue
549 : 1 : = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SUPPLEMENT_APPLIES_FOR_WEIGHT));
550 : :
551 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::DANGER), "::ad::map::landmark::TrafficSignType::DANGER");
- + - - -
- - - ]
552 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::DANGER));
553 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::DANGER));
554 : :
555 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::LANES_MERGING),
- + - - -
- - - ]
556 : : "::ad::map::landmark::TrafficSignType::LANES_MERGING");
557 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::LANES_MERGING));
558 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::LANES_MERGING));
559 : :
560 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::CAUTION_PEDESTRIAN),
- + - - -
- - - ]
561 : : "::ad::map::landmark::TrafficSignType::CAUTION_PEDESTRIAN");
562 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::CAUTION_PEDESTRIAN));
563 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::CAUTION_PEDESTRIAN));
564 : :
565 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::CAUTION_CHILDREN),
- + - - -
- - - ]
566 : : "::ad::map::landmark::TrafficSignType::CAUTION_CHILDREN");
567 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::CAUTION_CHILDREN));
568 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::CAUTION_CHILDREN));
569 : :
570 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::CAUTION_BICYCLE),
- + - - -
- - - ]
571 : : "::ad::map::landmark::TrafficSignType::CAUTION_BICYCLE");
572 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::CAUTION_BICYCLE));
573 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::CAUTION_BICYCLE));
574 : :
575 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::CAUTION_ANIMALS),
- + - - -
- - - ]
576 : : "::ad::map::landmark::TrafficSignType::CAUTION_ANIMALS");
577 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::CAUTION_ANIMALS));
578 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::CAUTION_ANIMALS));
579 : :
580 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::CAUTION_RAIL_CROSSING_WITH_BARRIER),
- + - - -
- - - ]
581 : : "::ad::map::landmark::TrafficSignType::CAUTION_RAIL_CROSSING_WITH_BARRIER");
582 : 1 : minValue = std::min(minValue,
583 : 1 : static_cast<int32_t>(::ad::map::landmark::TrafficSignType::CAUTION_RAIL_CROSSING_WITH_BARRIER));
584 : 1 : maxValue = std::max(maxValue,
585 : 1 : static_cast<int32_t>(::ad::map::landmark::TrafficSignType::CAUTION_RAIL_CROSSING_WITH_BARRIER));
586 : :
587 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::CAUTION_RAIL_CROSSING),
- + - - -
- - - ]
588 : : "::ad::map::landmark::TrafficSignType::CAUTION_RAIL_CROSSING");
589 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::CAUTION_RAIL_CROSSING));
590 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::CAUTION_RAIL_CROSSING));
591 : :
592 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::YIELD_TRAIN),
- + - - -
- - - ]
593 : : "::ad::map::landmark::TrafficSignType::YIELD_TRAIN");
594 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::YIELD_TRAIN));
595 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::YIELD_TRAIN));
596 : :
597 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::YIELD), "::ad::map::landmark::TrafficSignType::YIELD");
- + - - -
- - - ]
598 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::YIELD));
599 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::YIELD));
600 : :
601 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::STOP), "::ad::map::landmark::TrafficSignType::STOP");
- + - - -
- - - ]
602 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::STOP));
603 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::STOP));
604 : :
605 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::REQUIRED_RIGHT_TURN),
- + - - -
- - - ]
606 : : "::ad::map::landmark::TrafficSignType::REQUIRED_RIGHT_TURN");
607 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::REQUIRED_RIGHT_TURN));
608 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::REQUIRED_RIGHT_TURN));
609 : :
610 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::REQUIRED_LEFT_TURN),
- + - - -
- - - ]
611 : : "::ad::map::landmark::TrafficSignType::REQUIRED_LEFT_TURN");
612 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::REQUIRED_LEFT_TURN));
613 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::REQUIRED_LEFT_TURN));
614 : :
615 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::REQUIRED_STRAIGHT),
- + - - -
- - - ]
616 : : "::ad::map::landmark::TrafficSignType::REQUIRED_STRAIGHT");
617 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::REQUIRED_STRAIGHT));
618 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::REQUIRED_STRAIGHT));
619 : :
620 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::REQUIRED_STRAIGHT_OR_RIGHT_TURN),
- + - - -
- - - ]
621 : : "::ad::map::landmark::TrafficSignType::REQUIRED_STRAIGHT_OR_RIGHT_TURN");
622 : : minValue
623 : 1 : = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::REQUIRED_STRAIGHT_OR_RIGHT_TURN));
624 : : maxValue
625 : 1 : = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::REQUIRED_STRAIGHT_OR_RIGHT_TURN));
626 : :
627 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::REQUIRED_STRAIGHT_OR_LEFT_TURN),
- + - - -
- - - ]
628 : : "::ad::map::landmark::TrafficSignType::REQUIRED_STRAIGHT_OR_LEFT_TURN");
629 : : minValue
630 : 1 : = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::REQUIRED_STRAIGHT_OR_LEFT_TURN));
631 : : maxValue
632 : 1 : = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::REQUIRED_STRAIGHT_OR_LEFT_TURN));
633 : :
634 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::ROUNDABOUT),
- + - - -
- - - ]
635 : : "::ad::map::landmark::TrafficSignType::ROUNDABOUT");
636 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::ROUNDABOUT));
637 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::ROUNDABOUT));
638 : :
639 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::PASS_RIGHT),
- + - - -
- - - ]
640 : : "::ad::map::landmark::TrafficSignType::PASS_RIGHT");
641 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::PASS_RIGHT));
642 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::PASS_RIGHT));
643 : :
644 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::PASS_LEFT),
- + - - -
- - - ]
645 : : "::ad::map::landmark::TrafficSignType::PASS_LEFT");
646 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::PASS_LEFT));
647 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::PASS_LEFT));
648 : :
649 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::BYBICLE_PATH),
- + - - -
- - - ]
650 : : "::ad::map::landmark::TrafficSignType::BYBICLE_PATH");
651 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::BYBICLE_PATH));
652 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::BYBICLE_PATH));
653 : :
654 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::FOOTWALK), "::ad::map::landmark::TrafficSignType::FOOTWALK");
- + - - -
- - - ]
655 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::FOOTWALK));
656 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::FOOTWALK));
657 : :
658 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::FOOTWALK_BICYCLE_SHARED),
- + - - -
- - - ]
659 : : "::ad::map::landmark::TrafficSignType::FOOTWALK_BICYCLE_SHARED");
660 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::FOOTWALK_BICYCLE_SHARED));
661 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::FOOTWALK_BICYCLE_SHARED));
662 : :
663 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::FOOTWALK_BICYCLE_SEP_RIGHT),
- + - - -
- - - ]
664 : : "::ad::map::landmark::TrafficSignType::FOOTWALK_BICYCLE_SEP_RIGHT");
665 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::FOOTWALK_BICYCLE_SEP_RIGHT));
666 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::FOOTWALK_BICYCLE_SEP_RIGHT));
667 : :
668 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::FOOTWALK_BICYCLE_SEP_LEFT),
- + - - -
- - - ]
669 : : "::ad::map::landmark::TrafficSignType::FOOTWALK_BICYCLE_SEP_LEFT");
670 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::FOOTWALK_BICYCLE_SEP_LEFT));
671 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::FOOTWALK_BICYCLE_SEP_LEFT));
672 : :
673 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::PEDESTRIAN_AREA_BEGIN),
- + - - -
- - - ]
674 : : "::ad::map::landmark::TrafficSignType::PEDESTRIAN_AREA_BEGIN");
675 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::PEDESTRIAN_AREA_BEGIN));
676 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::PEDESTRIAN_AREA_BEGIN));
677 : :
678 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN),
- + - - -
- - - ]
679 : : "::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN");
680 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN));
681 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN));
682 : :
683 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_TRUCKS),
- + - - -
- - - ]
684 : : "::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_TRUCKS");
685 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_TRUCKS));
686 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_TRUCKS));
687 : :
688 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_BICYCLE),
- + - - -
- - - ]
689 : : "::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_BICYCLE");
690 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_BICYCLE));
691 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_BICYCLE));
692 : :
693 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_MOTORVEHICLES),
- + - - -
- - - ]
694 : : "::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_MOTORVEHICLES");
695 : : minValue
696 : 1 : = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_MOTORVEHICLES));
697 : : maxValue
698 : 1 : = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_MOTORVEHICLES));
699 : :
700 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_WEIGHT),
- + - - -
- - - ]
701 : : "::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_WEIGHT");
702 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_WEIGHT));
703 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_WEIGHT));
704 : :
705 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_WIDTH),
- + - - -
- - - ]
706 : : "::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_WIDTH");
707 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_WIDTH));
708 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_WIDTH));
709 : :
710 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_HEIGHT),
- + - - -
- - - ]
711 : : "::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_HEIGHT");
712 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_HEIGHT));
713 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_HEIGHT));
714 : :
715 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_WRONG_DIR),
- + - - -
- - - ]
716 : : "::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_WRONG_DIR");
717 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_WRONG_DIR));
718 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::ACCESS_FORBIDDEN_WRONG_DIR));
719 : :
720 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::ENVIORNMENT_ZONE_BEGIN),
- + - - -
- - - ]
721 : : "::ad::map::landmark::TrafficSignType::ENVIORNMENT_ZONE_BEGIN");
722 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::ENVIORNMENT_ZONE_BEGIN));
723 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::ENVIORNMENT_ZONE_BEGIN));
724 : :
725 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::ENVIORNMENT_ZONE_END),
- + - - -
- - - ]
726 : : "::ad::map::landmark::TrafficSignType::ENVIORNMENT_ZONE_END");
727 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::ENVIORNMENT_ZONE_END));
728 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::ENVIORNMENT_ZONE_END));
729 : :
730 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::MAX_SPEED),
- + - - -
- - - ]
731 : : "::ad::map::landmark::TrafficSignType::MAX_SPEED");
732 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::MAX_SPEED));
733 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::MAX_SPEED));
734 : :
735 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::SPEED_ZONE_30_BEGIN),
- + - - -
- - - ]
736 : : "::ad::map::landmark::TrafficSignType::SPEED_ZONE_30_BEGIN");
737 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SPEED_ZONE_30_BEGIN));
738 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SPEED_ZONE_30_BEGIN));
739 : :
740 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::SPEED_ZONE_30_END),
- + - - -
- - - ]
741 : : "::ad::map::landmark::TrafficSignType::SPEED_ZONE_30_END");
742 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SPEED_ZONE_30_END));
743 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::SPEED_ZONE_30_END));
744 : :
745 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::HAS_WAY_NEXT_INTERSECTION),
- + - - -
- - - ]
746 : : "::ad::map::landmark::TrafficSignType::HAS_WAY_NEXT_INTERSECTION");
747 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::HAS_WAY_NEXT_INTERSECTION));
748 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::HAS_WAY_NEXT_INTERSECTION));
749 : :
750 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::PRIORITY_WAY),
- + - - -
- - - ]
751 : : "::ad::map::landmark::TrafficSignType::PRIORITY_WAY");
752 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::PRIORITY_WAY));
753 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::PRIORITY_WAY));
754 : :
755 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::CITY_BEGIN),
- + - - -
- - - ]
756 : : "::ad::map::landmark::TrafficSignType::CITY_BEGIN");
757 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::CITY_BEGIN));
758 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::CITY_BEGIN));
759 : :
760 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::CITY_END), "::ad::map::landmark::TrafficSignType::CITY_END");
- + - - -
- - - ]
761 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::CITY_END));
762 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::CITY_END));
763 : :
764 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::MOTORWAY_BEGIN),
- + - - -
- - - ]
765 : : "::ad::map::landmark::TrafficSignType::MOTORWAY_BEGIN");
766 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::MOTORWAY_BEGIN));
767 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::MOTORWAY_BEGIN));
768 : :
769 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::MOTORWAY_END),
- + - - -
- - - ]
770 : : "::ad::map::landmark::TrafficSignType::MOTORWAY_END");
771 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::MOTORWAY_END));
772 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::MOTORWAY_END));
773 : :
774 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::MOTORVEHICLE_BEGIN),
- + - - -
- - - ]
775 : : "::ad::map::landmark::TrafficSignType::MOTORVEHICLE_BEGIN");
776 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::MOTORVEHICLE_BEGIN));
777 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::MOTORVEHICLE_BEGIN));
778 : :
779 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::MOTORVEHICLE_END),
- + - - -
- - - ]
780 : : "::ad::map::landmark::TrafficSignType::MOTORVEHICLE_END");
781 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::MOTORVEHICLE_END));
782 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::MOTORVEHICLE_END));
783 : :
784 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::INFO_MOTORWAY_INFO),
- + - - -
- - - ]
785 : : "::ad::map::landmark::TrafficSignType::INFO_MOTORWAY_INFO");
786 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::INFO_MOTORWAY_INFO));
787 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::INFO_MOTORWAY_INFO));
788 : :
789 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::CUL_DE_SAC),
- + - - -
- - - ]
790 : : "::ad::map::landmark::TrafficSignType::CUL_DE_SAC");
791 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::CUL_DE_SAC));
792 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::CUL_DE_SAC));
793 : :
794 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::CUL_DE_SAC_EXCEPT_PED_BICYCLE),
- + - - -
- - - ]
795 : : "::ad::map::landmark::TrafficSignType::CUL_DE_SAC_EXCEPT_PED_BICYCLE");
796 : : minValue
797 : 1 : = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::CUL_DE_SAC_EXCEPT_PED_BICYCLE));
798 : : maxValue
799 : 1 : = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::CUL_DE_SAC_EXCEPT_PED_BICYCLE));
800 : :
801 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::INFO_NUMBER_OF_AUTOBAHN),
- + - - -
- - - ]
802 : : "::ad::map::landmark::TrafficSignType::INFO_NUMBER_OF_AUTOBAHN");
803 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::INFO_NUMBER_OF_AUTOBAHN));
804 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::INFO_NUMBER_OF_AUTOBAHN));
805 : :
806 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::DIRECTION_TURN_TO_AUTOBAHN),
- + - - -
- - - ]
807 : : "::ad::map::landmark::TrafficSignType::DIRECTION_TURN_TO_AUTOBAHN");
808 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::DIRECTION_TURN_TO_AUTOBAHN));
809 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::DIRECTION_TURN_TO_AUTOBAHN));
810 : :
811 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::DIRECTION_TURN_TO_LOCAL),
- + - - -
- - - ]
812 : : "::ad::map::landmark::TrafficSignType::DIRECTION_TURN_TO_LOCAL");
813 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::DIRECTION_TURN_TO_LOCAL));
814 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::DIRECTION_TURN_TO_LOCAL));
815 : :
816 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::DESTINATION_BOARD),
- + - - -
- - - ]
817 : : "::ad::map::landmark::TrafficSignType::DESTINATION_BOARD");
818 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::DESTINATION_BOARD));
819 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::DESTINATION_BOARD));
820 : :
821 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::FREE_TEXT),
- + - - -
- - - ]
822 : : "::ad::map::landmark::TrafficSignType::FREE_TEXT");
823 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::FREE_TEXT));
824 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::FREE_TEXT));
825 : :
826 [ + - + - : 2 : ASSERT_EQ(toString(::ad::map::landmark::TrafficSignType::UNKNOWN), "::ad::map::landmark::TrafficSignType::UNKNOWN");
- + - - -
- - - ]
827 : 1 : minValue = std::min(minValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::UNKNOWN));
828 : 1 : maxValue = std::max(maxValue, static_cast<int32_t>(::ad::map::landmark::TrafficSignType::UNKNOWN));
829 : :
830 [ + - + - : 2 : ASSERT_EQ(toString(static_cast<::ad::map::landmark::TrafficSignType>(minValue - 1)), "UNKNOWN ENUM VALUE");
- + - - -
- - - ]
831 [ + - + - : 2 : ASSERT_EQ(toString(static_cast<::ad::map::landmark::TrafficSignType>(maxValue + 1)), "UNKNOWN ENUM VALUE");
- + - - -
- - - ]
832 : : }
833 : :
834 : 2 : TEST(TrafficSignTypeTests, ostreamOperatorTest)
835 : : {
836 [ + - ]: 1 : std::stringstream stream;
837 : 1 : ::ad::map::landmark::TrafficSignType value(::ad::map::landmark::TrafficSignType::INVALID);
838 [ + - ]: 1 : stream << value;
839 [ + - + - : 1 : ASSERT_GT(stream.str().size(), 0u);
- + - - -
- - - ]
840 : : }
841 : :
842 : : #if defined(__clang__) && (__clang_major__ >= 7)
843 : : #pragma GCC diagnostic pop
844 : : #endif
|