and \int_0^{-\infty} \frac{1-e^{x}}{x} \cos{x} \ \mathrm{d}x.
The current version also knows answer to NIntegrate of the function.
Hence, we see the BUG (obviously, the result is not correct). But Wolfram|Alpha support team answered, “After review, our internal development group believes the output given is correct.” ([W|A #487459])
Does Wolfram Mathematica use general mathematics rules or special branch only, e.g. “Wolfram branch of maths”?
Btw, Version 9 also handles it the same way (gives same error without the PrincipalValue -> True setting) so this might not be a bug, but I am not an expert on this.
As I can see the bug has not been fixed yet. Do you know the class of functions that we can believe the result of integration? I am afraid to use Mathematica because of uncertain results.
There’s no 100% guaranteed source for integrals. I remember in grad school wasting a lot of time once due to an incorrect integral in Gradshteyn and Ryzhik, the “Bible” of integrals.
It was fixed in the internal version under development. It was not back-ported to 10.0.1. It is not considered to be a show-stopper level of bug and, to my mind, the risks of doing so outweigh the benefits. Risks include both delays in shipping, and the possibility of introducing subtle new bugs.