1. Made the variable TAP::TODO visible by adding an extern declaration to the header file
2. Removed unused variable TAP::todo (I guessed it was a typo)
3. Added a new function is_todo_test() to report whether the current
test is a TODO test
4. Made it so that TODO tests are not counted in the number of not_ok tests - this makes the exit status work correctly.
5. Made diagnostic messages by default go to std::cout. This is the
default in Perl. (Try an is or an isnt and you'll see that the
message goes to stdout). I did this by setting TAP::details.error to
The Perl diagnostics have language like "Failed (TODO) test" when
failing a todo test. I added this to libtap++.
To add it, I had to make the TODO status visible to the is and isnt
methods, which are defined in the header file. I thought that
TAP::details was the best place to put the interface function -- out
of the way of most users, but still where is and isnt can see it.