From 42bc00510a11cc5442b64486d4056a5a993aa1b6 Mon Sep 17 00:00:00 2001 From: Kristofer Berggren Date: Sun, 12 Apr 2026 13:09:25 +0800 Subject: [PATCH] improve tests exception output, minor code style fix --- src/rapidcsv.h | 12 ++++++++---- tests/ptest001.cpp | 2 +- tests/ptest002.cpp | 2 +- tests/test001.cpp | 2 +- tests/test002.cpp | 2 +- tests/test003.cpp | 2 +- tests/test004.cpp | 2 +- tests/test005.cpp | 2 +- tests/test006.cpp | 2 +- tests/test007.cpp | 2 +- tests/test008.cpp | 2 +- tests/test009.cpp | 2 +- tests/test010.cpp | 2 +- tests/test011.cpp | 2 +- tests/test012.cpp | 2 +- tests/test013.cpp | 2 +- tests/test014.cpp | 2 +- tests/test015.cpp | 2 +- tests/test016.cpp | 2 +- tests/test017.cpp | 2 +- tests/test018.cpp | 2 +- tests/test019.cpp | 2 +- tests/test020.cpp | 2 +- tests/test021.cpp | 2 +- tests/test022.cpp | 2 +- tests/test023.cpp | 2 +- tests/test024.cpp | 2 +- tests/test025.cpp | 2 +- tests/test026.cpp | 2 +- tests/test027.cpp | 2 +- tests/test028.cpp | 2 +- tests/test029.cpp | 2 +- tests/test030.cpp | 2 +- tests/test031.cpp | 2 +- tests/test032.cpp | 2 +- tests/test033.cpp | 2 +- tests/test034.cpp | 2 +- tests/test035.cpp | 2 +- tests/test036.cpp | 2 +- tests/test037.cpp | 2 +- tests/test038.cpp | 2 +- tests/test039.cpp | 2 +- tests/test040.cpp | 2 +- tests/test040b.cpp | 2 +- tests/test041.cpp | 2 +- tests/test042.cpp | 2 +- tests/test043.cpp | 2 +- tests/test044.cpp | 2 +- tests/test045.cpp | 2 +- tests/test046.cpp | 2 +- tests/test047.cpp | 2 +- tests/test048.cpp | 2 +- tests/test049.cpp | 2 +- tests/test050.cpp | 2 +- tests/test051.cpp | 2 +- tests/test052.cpp | 2 +- tests/test053.cpp | 2 +- tests/test054.cpp | 2 +- tests/test055.cpp | 2 +- tests/test056.cpp | 2 +- tests/test057.cpp | 2 +- tests/test058.cpp | 2 +- tests/test059.cpp | 2 +- tests/test060.cpp | 2 +- tests/test061.cpp | 2 +- tests/test062.cpp | 2 +- tests/test063.cpp | 2 +- tests/test064.cpp | 2 +- tests/test065.cpp | 2 +- tests/test066.cpp | 2 +- tests/test067.cpp | 2 +- tests/test068.cpp | 2 +- tests/test069.cpp | 2 +- tests/test070.cpp | 2 +- tests/test071.cpp | 2 +- tests/test072.cpp | 2 +- tests/test073.cpp | 2 +- tests/test074.cpp | 2 +- tests/test075.cpp | 2 +- tests/test076.cpp | 2 +- tests/test077.cpp | 2 +- tests/test078.cpp | 2 +- tests/test079.cpp | 2 +- tests/test080.cpp | 2 +- tests/test081.cpp | 2 +- tests/test082.cpp | 2 +- tests/test083.cpp | 2 +- tests/test084.cpp | 2 +- tests/test085.cpp | 2 +- tests/test086.cpp | 2 +- tests/test087.cpp | 2 +- tests/test088.cpp | 2 +- tests/test089.cpp | 2 +- tests/test090.cpp | 2 +- tests/test091.cpp | 2 +- tests/test092.cpp | 2 +- tests/test093.cpp | 2 +- tests/test094.cpp | 2 +- tests/test095.cpp | 2 +- tests/test096.cpp | 2 +- tests/test097.cpp | 2 +- tests/test098.cpp | 2 +- tests/test099.cpp | 2 +- tests/test100.cpp | 2 +- tests/test101.cpp | 2 +- tests/test102.cpp | 2 +- tests/test103.cpp | 2 +- tests/test104.cpp | 2 +- tests/test105.cpp | 2 +- tests/test106.cpp | 2 +- 110 files changed, 117 insertions(+), 113 deletions(-) diff --git a/src/rapidcsv.h b/src/rapidcsv.h index 3111db9e..0a92ad09 100644 --- a/src/rapidcsv.h +++ b/src/rapidcsv.h @@ -2,7 +2,7 @@ * rapidcsv.h * * URL: https://github.com/d99kris/rapidcsv - * Version: 8.96 + * Version: 8.97 * * Copyright (C) 2017-2026 Kristofer Berggren * All rights reserved. @@ -1456,7 +1456,8 @@ namespace rapidcsv { mData.resize(rowIdx + 1); } - auto& row = mData[rowIdx]; + + std::vector& row = mData[rowIdx]; if (dataColumnIdx >= row.size()) { row.resize(dataColumnIdx + 1); @@ -1527,7 +1528,8 @@ namespace rapidcsv { mData.resize(dataRowIdx + 1); } - auto& row = mData[dataRowIdx]; + + std::vector& row = mData[dataRowIdx]; if (mLabelParams.mRowNameIdx >= static_cast(row.size())) { row.resize(static_cast(mLabelParams.mRowNameIdx) + 1); @@ -1892,7 +1894,9 @@ namespace rapidcsv str.erase(str.begin(), std::find_if(str.begin(), str.end(), [](unsigned char ch) { return !isspace(ch); })); // rtrim - str.erase(std::find_if(str.rbegin(), str.rend(), [](unsigned char ch) { return !isspace(ch); }).base(), str.end()); + str.erase(std::find_if(str.rbegin(), str.rend(), [](unsigned char ch) { + return !isspace(ch); + }).base(), str.end()); return str; } diff --git a/tests/ptest001.cpp b/tests/ptest001.cpp index e333084d..68061b04 100644 --- a/tests/ptest001.cpp +++ b/tests/ptest001.cpp @@ -33,7 +33,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/ptest002.cpp b/tests/ptest002.cpp index b494a8c6..7947b3db 100644 --- a/tests/ptest002.cpp +++ b/tests/ptest002.cpp @@ -25,7 +25,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test001.cpp b/tests/test001.cpp index c2c38626..19040b57 100644 --- a/tests/test001.cpp +++ b/tests/test001.cpp @@ -29,7 +29,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test002.cpp b/tests/test002.cpp index 6cf9e801..02c67546 100644 --- a/tests/test002.cpp +++ b/tests/test002.cpp @@ -50,7 +50,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test003.cpp b/tests/test003.cpp index 2afdb5d9..57fd9009 100644 --- a/tests/test003.cpp +++ b/tests/test003.cpp @@ -40,7 +40,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test004.cpp b/tests/test004.cpp index d0b9439d..e18dd02f 100644 --- a/tests/test004.cpp +++ b/tests/test004.cpp @@ -56,7 +56,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test005.cpp b/tests/test005.cpp index 69765d22..8a685441 100644 --- a/tests/test005.cpp +++ b/tests/test005.cpp @@ -37,7 +37,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test006.cpp b/tests/test006.cpp index d914a24f..a05ff3e6 100644 --- a/tests/test006.cpp +++ b/tests/test006.cpp @@ -52,7 +52,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test007.cpp b/tests/test007.cpp index 64f29a45..5d3f597c 100644 --- a/tests/test007.cpp +++ b/tests/test007.cpp @@ -41,7 +41,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test008.cpp b/tests/test008.cpp index 56eb8615..3f77b249 100644 --- a/tests/test008.cpp +++ b/tests/test008.cpp @@ -39,7 +39,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test009.cpp b/tests/test009.cpp index 5250a517..3e4c5f6a 100644 --- a/tests/test009.cpp +++ b/tests/test009.cpp @@ -47,7 +47,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test010.cpp b/tests/test010.cpp index abd0b2eb..045471e6 100644 --- a/tests/test010.cpp +++ b/tests/test010.cpp @@ -47,7 +47,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test011.cpp b/tests/test011.cpp index 6848599c..63f8bd3a 100644 --- a/tests/test011.cpp +++ b/tests/test011.cpp @@ -42,7 +42,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test012.cpp b/tests/test012.cpp index f49ffdc3..84db8b7d 100644 --- a/tests/test012.cpp +++ b/tests/test012.cpp @@ -29,7 +29,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test013.cpp b/tests/test013.cpp index 745bb790..1f6283c9 100644 --- a/tests/test013.cpp +++ b/tests/test013.cpp @@ -50,7 +50,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test014.cpp b/tests/test014.cpp index 7e4e9ec2..fc7fdff8 100644 --- a/tests/test014.cpp +++ b/tests/test014.cpp @@ -40,7 +40,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test015.cpp b/tests/test015.cpp index 7eca08dc..4d103923 100644 --- a/tests/test015.cpp +++ b/tests/test015.cpp @@ -56,7 +56,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test016.cpp b/tests/test016.cpp index 541256d8..50fdd07a 100644 --- a/tests/test016.cpp +++ b/tests/test016.cpp @@ -37,7 +37,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test017.cpp b/tests/test017.cpp index 7a0fa240..7fe3b710 100644 --- a/tests/test017.cpp +++ b/tests/test017.cpp @@ -52,7 +52,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test018.cpp b/tests/test018.cpp index 21069b95..fc177728 100644 --- a/tests/test018.cpp +++ b/tests/test018.cpp @@ -41,7 +41,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test019.cpp b/tests/test019.cpp index b863b175..3a4d76ab 100644 --- a/tests/test019.cpp +++ b/tests/test019.cpp @@ -39,7 +39,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test020.cpp b/tests/test020.cpp index d9a2dd31..d641da2f 100644 --- a/tests/test020.cpp +++ b/tests/test020.cpp @@ -42,7 +42,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test021.cpp b/tests/test021.cpp index bac8fccd..3013d71e 100644 --- a/tests/test021.cpp +++ b/tests/test021.cpp @@ -42,7 +42,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test022.cpp b/tests/test022.cpp index 9c81270e..9ae65d36 100644 --- a/tests/test022.cpp +++ b/tests/test022.cpp @@ -39,7 +39,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test023.cpp b/tests/test023.cpp index 8d4766ca..777bc82c 100644 --- a/tests/test023.cpp +++ b/tests/test023.cpp @@ -28,7 +28,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test024.cpp b/tests/test024.cpp index 885281c2..0514096e 100644 --- a/tests/test024.cpp +++ b/tests/test024.cpp @@ -48,7 +48,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test025.cpp b/tests/test025.cpp index 3f6ee726..74757bcd 100644 --- a/tests/test025.cpp +++ b/tests/test025.cpp @@ -39,7 +39,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test026.cpp b/tests/test026.cpp index 1260f857..50485fe0 100644 --- a/tests/test026.cpp +++ b/tests/test026.cpp @@ -54,7 +54,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test027.cpp b/tests/test027.cpp index c9905fac..76d81296 100644 --- a/tests/test027.cpp +++ b/tests/test027.cpp @@ -36,7 +36,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test028.cpp b/tests/test028.cpp index edb218d1..fe544bfb 100644 --- a/tests/test028.cpp +++ b/tests/test028.cpp @@ -50,7 +50,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test029.cpp b/tests/test029.cpp index 34d50dd2..c776147b 100644 --- a/tests/test029.cpp +++ b/tests/test029.cpp @@ -39,7 +39,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test030.cpp b/tests/test030.cpp index 3affa332..0b3b8f4d 100644 --- a/tests/test030.cpp +++ b/tests/test030.cpp @@ -37,7 +37,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test031.cpp b/tests/test031.cpp index 349acd78..0c3d5bc2 100644 --- a/tests/test031.cpp +++ b/tests/test031.cpp @@ -36,7 +36,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test032.cpp b/tests/test032.cpp index 73e1f06f..c90f2fb2 100644 --- a/tests/test032.cpp +++ b/tests/test032.cpp @@ -36,7 +36,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test033.cpp b/tests/test033.cpp index 341c4319..4813efb2 100644 --- a/tests/test033.cpp +++ b/tests/test033.cpp @@ -34,7 +34,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test034.cpp b/tests/test034.cpp index f3478107..dacd71ce 100644 --- a/tests/test034.cpp +++ b/tests/test034.cpp @@ -32,7 +32,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test035.cpp b/tests/test035.cpp index 92ed05ab..abb15f6e 100644 --- a/tests/test035.cpp +++ b/tests/test035.cpp @@ -54,7 +54,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test036.cpp b/tests/test036.cpp index e1669c5e..e5e6c196 100644 --- a/tests/test036.cpp +++ b/tests/test036.cpp @@ -54,7 +54,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test037.cpp b/tests/test037.cpp index 8cb728da..1cc8bc6b 100644 --- a/tests/test037.cpp +++ b/tests/test037.cpp @@ -74,7 +74,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test038.cpp b/tests/test038.cpp index 1b27d3d1..5cb931e9 100644 --- a/tests/test038.cpp +++ b/tests/test038.cpp @@ -30,7 +30,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test039.cpp b/tests/test039.cpp index 36439b73..26113860 100644 --- a/tests/test039.cpp +++ b/tests/test039.cpp @@ -36,7 +36,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test040.cpp b/tests/test040.cpp index c195b90c..4a671da7 100644 --- a/tests/test040.cpp +++ b/tests/test040.cpp @@ -33,7 +33,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test040b.cpp b/tests/test040b.cpp index 55a40766..6e8dc4f1 100644 --- a/tests/test040b.cpp +++ b/tests/test040b.cpp @@ -29,7 +29,7 @@ int help_func() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test041.cpp b/tests/test041.cpp index ba719a68..39bebbe3 100644 --- a/tests/test041.cpp +++ b/tests/test041.cpp @@ -29,7 +29,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test042.cpp b/tests/test042.cpp index 5897d72a..01d6bb3e 100644 --- a/tests/test042.cpp +++ b/tests/test042.cpp @@ -40,7 +40,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test043.cpp b/tests/test043.cpp index 697bd56b..8bd200e1 100644 --- a/tests/test043.cpp +++ b/tests/test043.cpp @@ -40,7 +40,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test044.cpp b/tests/test044.cpp index eabae580..06edf313 100644 --- a/tests/test044.cpp +++ b/tests/test044.cpp @@ -38,7 +38,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test045.cpp b/tests/test045.cpp index c626e3b0..e67a1727 100644 --- a/tests/test045.cpp +++ b/tests/test045.cpp @@ -29,7 +29,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test046.cpp b/tests/test046.cpp index 623f41d7..27a20e99 100644 --- a/tests/test046.cpp +++ b/tests/test046.cpp @@ -50,7 +50,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test047.cpp b/tests/test047.cpp index 89c49020..7fd390e9 100644 --- a/tests/test047.cpp +++ b/tests/test047.cpp @@ -30,7 +30,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test048.cpp b/tests/test048.cpp index d8ee5e1b..c0f6229b 100644 --- a/tests/test048.cpp +++ b/tests/test048.cpp @@ -32,7 +32,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test049.cpp b/tests/test049.cpp index 55b32fcf..e8ea0118 100644 --- a/tests/test049.cpp +++ b/tests/test049.cpp @@ -33,7 +33,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test050.cpp b/tests/test050.cpp index e27f0843..7b86826b 100644 --- a/tests/test050.cpp +++ b/tests/test050.cpp @@ -36,7 +36,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test051.cpp b/tests/test051.cpp index fceff59a..80733494 100644 --- a/tests/test051.cpp +++ b/tests/test051.cpp @@ -47,7 +47,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test052.cpp b/tests/test052.cpp index a25b19aa..d80897c3 100644 --- a/tests/test052.cpp +++ b/tests/test052.cpp @@ -36,7 +36,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test053.cpp b/tests/test053.cpp index 18867e0e..cf7d0b22 100644 --- a/tests/test053.cpp +++ b/tests/test053.cpp @@ -49,7 +49,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test054.cpp b/tests/test054.cpp index 1ac29dfd..2b3768e1 100644 --- a/tests/test054.cpp +++ b/tests/test054.cpp @@ -47,7 +47,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test055.cpp b/tests/test055.cpp index d6a0744e..89941fdc 100644 --- a/tests/test055.cpp +++ b/tests/test055.cpp @@ -38,7 +38,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test056.cpp b/tests/test056.cpp index 5a5d7cd3..1e41fc75 100644 --- a/tests/test056.cpp +++ b/tests/test056.cpp @@ -27,7 +27,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test057.cpp b/tests/test057.cpp index 3b15e3f6..62133162 100644 --- a/tests/test057.cpp +++ b/tests/test057.cpp @@ -39,7 +39,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test058.cpp b/tests/test058.cpp index 9db7699b..67689883 100644 --- a/tests/test058.cpp +++ b/tests/test058.cpp @@ -39,7 +39,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test059.cpp b/tests/test059.cpp index b5ef6729..90bd8a12 100644 --- a/tests/test059.cpp +++ b/tests/test059.cpp @@ -69,7 +69,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test060.cpp b/tests/test060.cpp index 78157d5a..1d1bde51 100644 --- a/tests/test060.cpp +++ b/tests/test060.cpp @@ -69,7 +69,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test061.cpp b/tests/test061.cpp index 2f21ed53..d4a6ceb3 100644 --- a/tests/test061.cpp +++ b/tests/test061.cpp @@ -29,7 +29,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test062.cpp b/tests/test062.cpp index 5eb65b6f..6803f14a 100644 --- a/tests/test062.cpp +++ b/tests/test062.cpp @@ -29,7 +29,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test063.cpp b/tests/test063.cpp index 84b40698..a559b37d 100644 --- a/tests/test063.cpp +++ b/tests/test063.cpp @@ -69,7 +69,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test064.cpp b/tests/test064.cpp index 44c63fe9..d3c96a35 100644 --- a/tests/test064.cpp +++ b/tests/test064.cpp @@ -48,7 +48,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test065.cpp b/tests/test065.cpp index 98b32845..242a4ac0 100644 --- a/tests/test065.cpp +++ b/tests/test065.cpp @@ -44,7 +44,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test066.cpp b/tests/test066.cpp index ac12c740..f0062586 100644 --- a/tests/test066.cpp +++ b/tests/test066.cpp @@ -23,7 +23,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test067.cpp b/tests/test067.cpp index 45619723..9fa1cd6e 100644 --- a/tests/test067.cpp +++ b/tests/test067.cpp @@ -58,7 +58,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test068.cpp b/tests/test068.cpp index bfda39a2..acf2201d 100644 --- a/tests/test068.cpp +++ b/tests/test068.cpp @@ -55,7 +55,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test069.cpp b/tests/test069.cpp index 85f66d90..aa4dbd37 100644 --- a/tests/test069.cpp +++ b/tests/test069.cpp @@ -27,7 +27,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test070.cpp b/tests/test070.cpp index 319d1be4..52b149ba 100644 --- a/tests/test070.cpp +++ b/tests/test070.cpp @@ -32,7 +32,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test071.cpp b/tests/test071.cpp index 541eec6b..196ecd22 100644 --- a/tests/test071.cpp +++ b/tests/test071.cpp @@ -33,7 +33,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test072.cpp b/tests/test072.cpp index 9643301c..29733e20 100644 --- a/tests/test072.cpp +++ b/tests/test072.cpp @@ -28,7 +28,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test073.cpp b/tests/test073.cpp index 4bb15104..0315ce6e 100644 --- a/tests/test073.cpp +++ b/tests/test073.cpp @@ -34,7 +34,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test074.cpp b/tests/test074.cpp index 0f41e534..24ccdad6 100644 --- a/tests/test074.cpp +++ b/tests/test074.cpp @@ -47,7 +47,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test075.cpp b/tests/test075.cpp index cd94eed5..1c18676e 100644 --- a/tests/test075.cpp +++ b/tests/test075.cpp @@ -47,7 +47,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test076.cpp b/tests/test076.cpp index b39ee217..b2c1bb66 100644 --- a/tests/test076.cpp +++ b/tests/test076.cpp @@ -49,7 +49,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test077.cpp b/tests/test077.cpp index 1a041a5a..427c341a 100644 --- a/tests/test077.cpp +++ b/tests/test077.cpp @@ -41,7 +41,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test078.cpp b/tests/test078.cpp index 90b4fe19..dfa98065 100644 --- a/tests/test078.cpp +++ b/tests/test078.cpp @@ -60,7 +60,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test079.cpp b/tests/test079.cpp index 77afc938..309a64f5 100644 --- a/tests/test079.cpp +++ b/tests/test079.cpp @@ -43,7 +43,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test080.cpp b/tests/test080.cpp index e8d20669..85a9954e 100644 --- a/tests/test080.cpp +++ b/tests/test080.cpp @@ -26,7 +26,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test081.cpp b/tests/test081.cpp index e1b7c225..d7d9595b 100644 --- a/tests/test081.cpp +++ b/tests/test081.cpp @@ -48,7 +48,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test082.cpp b/tests/test082.cpp index 2b967f61..16e69697 100644 --- a/tests/test082.cpp +++ b/tests/test082.cpp @@ -48,7 +48,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test083.cpp b/tests/test083.cpp index 747bc846..c4d775a1 100644 --- a/tests/test083.cpp +++ b/tests/test083.cpp @@ -32,7 +32,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test084.cpp b/tests/test084.cpp index d625d996..9a0829f8 100644 --- a/tests/test084.cpp +++ b/tests/test084.cpp @@ -31,7 +31,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test085.cpp b/tests/test085.cpp index 1b2ca676..35d0c500 100644 --- a/tests/test085.cpp +++ b/tests/test085.cpp @@ -21,7 +21,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test086.cpp b/tests/test086.cpp index e34185e7..ed60768d 100644 --- a/tests/test086.cpp +++ b/tests/test086.cpp @@ -33,7 +33,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test087.cpp b/tests/test087.cpp index 79b649a5..bedfa1ce 100644 --- a/tests/test087.cpp +++ b/tests/test087.cpp @@ -58,7 +58,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test088.cpp b/tests/test088.cpp index 767a9528..4f33c7d5 100644 --- a/tests/test088.cpp +++ b/tests/test088.cpp @@ -75,7 +75,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test089.cpp b/tests/test089.cpp index 238caff9..ca3f9547 100644 --- a/tests/test089.cpp +++ b/tests/test089.cpp @@ -55,7 +55,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test090.cpp b/tests/test090.cpp index 83a2d2a6..e12a2e36 100644 --- a/tests/test090.cpp +++ b/tests/test090.cpp @@ -76,7 +76,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test091.cpp b/tests/test091.cpp index 3dd41f00..cb8c752e 100644 --- a/tests/test091.cpp +++ b/tests/test091.cpp @@ -53,7 +53,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test092.cpp b/tests/test092.cpp index 14adcab6..82250949 100644 --- a/tests/test092.cpp +++ b/tests/test092.cpp @@ -63,7 +63,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test093.cpp b/tests/test093.cpp index 1a5f6239..4ca8519e 100644 --- a/tests/test093.cpp +++ b/tests/test093.cpp @@ -79,7 +79,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test094.cpp b/tests/test094.cpp index 139f0e43..809d967b 100644 --- a/tests/test094.cpp +++ b/tests/test094.cpp @@ -25,7 +25,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test095.cpp b/tests/test095.cpp index 3bd61731..4a21b664 100644 --- a/tests/test095.cpp +++ b/tests/test095.cpp @@ -50,7 +50,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test096.cpp b/tests/test096.cpp index c0ad3991..175ad8b2 100644 --- a/tests/test096.cpp +++ b/tests/test096.cpp @@ -29,7 +29,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test097.cpp b/tests/test097.cpp index 2771fd76..c4373a9d 100644 --- a/tests/test097.cpp +++ b/tests/test097.cpp @@ -31,7 +31,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test098.cpp b/tests/test098.cpp index b80be461..d259477c 100644 --- a/tests/test098.cpp +++ b/tests/test098.cpp @@ -49,7 +49,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test099.cpp b/tests/test099.cpp index edaecb8e..52160215 100644 --- a/tests/test099.cpp +++ b/tests/test099.cpp @@ -36,7 +36,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test100.cpp b/tests/test100.cpp index 9c0e0ebf..0b76977f 100644 --- a/tests/test100.cpp +++ b/tests/test100.cpp @@ -32,7 +32,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test101.cpp b/tests/test101.cpp index 93f7cd95..9231f62e 100644 --- a/tests/test101.cpp +++ b/tests/test101.cpp @@ -38,7 +38,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test102.cpp b/tests/test102.cpp index d0fa6088..6a8b7c07 100644 --- a/tests/test102.cpp +++ b/tests/test102.cpp @@ -36,7 +36,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test103.cpp b/tests/test103.cpp index 07b96aa3..c8849378 100644 --- a/tests/test103.cpp +++ b/tests/test103.cpp @@ -96,7 +96,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test104.cpp b/tests/test104.cpp index 0784c4fc..2a52caed 100644 --- a/tests/test104.cpp +++ b/tests/test104.cpp @@ -48,7 +48,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test105.cpp b/tests/test105.cpp index 642eabc0..e57e808a 100644 --- a/tests/test105.cpp +++ b/tests/test105.cpp @@ -51,7 +51,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; } diff --git a/tests/test106.cpp b/tests/test106.cpp index 1416528a..831233ab 100644 --- a/tests/test106.cpp +++ b/tests/test106.cpp @@ -73,7 +73,7 @@ int main() } catch (const std::exception& ex) { - std::cout << ex.what() << std::endl; + std::cout << "exception: " << ex.what() << std::endl; rv = 1; }