Changeset 10919 for code/branches/cpp11_v2/test/util/MathTest.cc
- Timestamp:
- Dec 5, 2015, 10:47:51 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/test/util/MathTest.cc
r9114 r10919 245 245 246 246 // all numbers must satisfy 0 <= <number> < 1 247 for ( std::set<float>::iterator it = numbers.begin(); it != numbers.end(); ++it)247 for (float number : numbers) 248 248 { 249 EXPECT_LE(min, *it);250 EXPECT_GT(max, *it);249 EXPECT_LE(min, number); 250 EXPECT_GT(max, number); 251 251 } 252 252 } … … 268 268 269 269 // all numbers must satisfy 0 <= <number> < <max> 270 for ( std::set<float>::iterator it = numbers.begin(); it != numbers.end(); ++it)270 for (float number : numbers) 271 271 { 272 EXPECT_LE(min, *it);273 EXPECT_GT(max, *it);272 EXPECT_LE(min, number); 273 EXPECT_GT(max, number); 274 274 } 275 275 } … … 291 291 292 292 // all numbers must satisfy <min> <= <number> < <max> 293 for ( std::set<float>::iterator it = numbers.begin(); it != numbers.end(); ++it)293 for (float number : numbers) 294 294 { 295 EXPECT_LE(min, *it);296 EXPECT_GT(max, *it);295 EXPECT_LE(min, number); 296 EXPECT_GT(max, number); 297 297 } 298 298 } … … 315 315 316 316 // all numbers must be either 1 oder -1 317 for ( std::set<float>::iterator it = numbers.begin(); it != numbers.end(); ++it)318 EXPECT_TRUE( *it == 1 || *it== -1);317 for (float number : numbers) 318 EXPECT_TRUE(number == 1 || number == -1); 319 319 } 320 320
Note: See TracChangeset
for help on using the changeset viewer.