MCPcopy Create free account
hub / github.com/ArashPartow/exprtk / run_test00

Function run_test00

exprtk_test.cpp:1264–1306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1262
1263template <typename T>
1264bool run_test00()
1265{
1266 const std::size_t rounds = 10;
1267
1268 for (std::size_t r = 0; r < rounds; ++r)
1269 {
1270 bool result = true;
1271
1272 for (std::size_t i = 0; i < global_test_list_size; ++i)
1273 {
1274 if (!test_expression<T>(global_test_list[i].first,T(global_test_list[i].second)))
1275 {
1276 result = false;
1277 }
1278 }
1279
1280 if (!result)
1281 {
1282 return false;
1283 }
1284 }
1285
1286 {
1287 const std::vector<test_t> tests = edge_cases<T>::test_cases();
1288
1289 bool result = true;
1290
1291 for (std::size_t i = 0; i < tests.size(); ++i)
1292 {
1293 if (!test_expression<T>(tests[i].first,T(tests[i].second)))
1294 {
1295 result = false;
1296 }
1297 }
1298
1299 if (!result)
1300 {
1301 return false;
1302 }
1303 }
1304
1305 return true;
1306}
1307
1308template <typename T>
1309struct test_xy

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected