Changes between Version 2 and Version 3 of ReportingBugs
- Timestamp:
- Jul 27, 2007, 12:58:19 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ReportingBugs
v2 v3 9 9 The maintainers of the Boost component affected by the bug will appreciate it if you already have an idea how to fix it. It's best if you submit a patch, as explained [http://www.boost.org/more/bugs.htm here]. 10 10 11 It's even more helpful if you submit a new unittest. This guarantees that the bug stays fixed.11 It's even more helpful if you submit a new test. This guarantees that the bug stays fixed. 12 12 13 == Submitting a UnitTest ==13 == Submitting a Test == 14 14 15 Creating a n unittest is easy. We'll illustrate this with an [http://lists.boost.org/boost-users/2007/07/29648.php example] taken from the [http://lists.boost.org/boost-users/ boost-users] mailing list:15 Creating a test is easy. We'll illustrate this with an [http://lists.boost.org/boost-users/2007/07/29648.php example] taken from the [http://lists.boost.org/boost-users/ boost-users] mailing list: 16 16 17 17 The following code using Lambda with vector iterators compiles without complaint: … … 42 42 that I didn't see documented somewhere? 43 43 44 Here's the unittest that you, as the hypothetical reporter of the above bug, can submit as an attachment to the new ticket:44 Here's the test that you, as the hypothetical reporter of the above bug, can submit as an attachment to the new ticket: 45 45 46 46 {{{ … … 69 69 }}} 70 70 71 Note that even though the bug report only states that the code doesn't compile, the unit test actually tests whether the code, when compiled, actually does what it's expected to do. This may seem trivial, but it does help. Be sure to not forget the `return boost::report_errors()` statement at the end of `main`.71 Note that even though the bug report only states that the code doesn't compile, the test checks whether the code, when compiled, actually does what it's expected to do. This may seem trivial, but it does help. Be sure to not forget the `return boost::report_errors()` statement at the end of `main`. 72 72 73 Thank you in advance for your bug reports and unittests!73 Thank you in advance for your bug reports and tests!