Boost logo

Boost Users :

From: Johan Råde (rade_at_[hidden])
Date: 2008-02-26 02:43:03

John Maddock wrote:


> MSVC-8 (debug)
> Running 8 test cases...
> nonfinite_num_facets/legacy_test.cpp(120): error in "legacy_test": check
> (isnan)
> (b11) failed


> nonfinite_num_facets/legacy_test.cpp(138): error in "legacy_test": check
> ss.rdst
> ate() == std::ios_base::eofbit failed
> *** 12 failures detected in test suite "Master Test Suite"

Could you check the value of ss.str() after line 105 in legacy_test.cpp?

This test tests that the facet boost::math::nonfinite_num_get,
with the boost::math::legacy flag set, can handle

1) a list of known non-standard text representations of infinity and NaN (see the library docs)
2) the native text representations of infinity and NaN on the platform being tested.

So one possible explanation for the failure is that
the creative people at Microsoft have come
up with yet another way of formatting NaN in a text stream.

The test is templated and is run for all combinations of
float, double, long double and char, wchar_t.
So the 12 failures are really just 2 failures.
The second failure is probably a consequence of the first one.
So there is probably just one failure.


> MSVC-8 (release + SSE2)
> Running 8 test cases...
> nonfinite_num_facets/basic_test.cpp(167): error in "basic_test": check
> ss.str()
> == s failed


> "lexical_cast_test": ch
> eck lexical_cast<std::basic_string<CharType> >(a10) == s10 failed
> *** 30 failures detected in test suite "Master Test Suite"

Fix: Replace




everywhere in the tests.



Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at