Boost C++ Libraries: Ticket #5037: test_output fails on trivial "inf" and "nan" formatting differences https://svn.boost.org/trac10/ticket/5037 <p> test_output fails on trivial, platform-specific output formatting differences. In the output below you see different forms of expected results: "1.#INF", "-1.#INF", "-nan", etc. </p> <p> Since (I think) C++ doesn't define these specifically, perhaps a regex should be used to capture all variants. </p> <p> <a class="ext-link" href="http://tinyurl.com/2fkt6zl"><span class="icon">​</span>Mingw-64 GCC 4.6, as of 1/4/2011</a>: </p> <pre class="wiki">../libs/units/test/test_output.cpp(322): error in "test_output_autoprefixed_quantity_name": check ss.str() == "inf meter" failed [1.#INF meter != inf meter] ../libs/units/test/test_output.cpp(322): error in "test_output_autoprefixed_quantity_name": check ss.str() == L"inf meter" failed ../libs/units/test/test_output.cpp(323): error in "test_output_autoprefixed_quantity_name": check ss.str() == "-inf meter" failed [-1.#INF meter != -inf meter] ../libs/units/test/test_output.cpp(323): error in "test_output_autoprefixed_quantity_name": check ss.str() == L"-inf meter" failed ../libs/units/test/test_output.cpp(324): error in "test_output_autoprefixed_quantity_name": check ss.str() == "nan meter" failed [1.#QNAN meter != nan meter] ../libs/units/test/test_output.cpp(324): error in "test_output_autoprefixed_quantity_name": check ss.str() == L"nan meter" failed ../libs/units/test/test_output.cpp(325): error in "test_output_autoprefixed_quantity_name": check ss.str() == "-nan meter" failed [-1.#IND meter != -nan meter] ../libs/units/test/test_output.cpp(325): error in "test_output_autoprefixed_quantity_name": check ss.str() == L"-nan meter" failed </pre><hr /> <p> <a class="ext-link" href="http://tinyurl.com/34hpsfj"><span class="icon">​</span>FreeBSD8 GCC 4.2.1, as of 1/4/2011</a>: </p> <pre class="wiki">../libs/units/test/test_output.cpp(325): error in "test_output_autoprefixed_quantity_name": check ss.str() == "-nan meter" failed [nan meter != -nan meter] ../libs/units/test/test_output.cpp(325): error in "test_output_autoprefixed_quantity_name": check ss.str() == L"-nan meter" failed </pre><hr /> <p> Other platform failures are similiar. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5037 Trac 1.4.3 Steven Watanabe Tue, 04 Jan 2011 23:58:35 GMT owner, status changed https://svn.boost.org/trac10/ticket/5037#comment:1 https://svn.boost.org/trac10/ticket/5037#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Matthias Schabel</span> to <span class="trac-author">Steven Watanabe</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Steven Watanabe Wed, 05 Jan 2011 00:14:23 GMT <link>https://svn.boost.org/trac10/ticket/5037#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5037#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/67668" title="Regexify testing of infinity and NaN. Refs #5037.">[67668]</a>) Regexify testing of infinity and NaN. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5037" title="#5037: Bugs: test_output fails on trivial &#34;inf&#34; and &#34;nan&#34; formatting differences (closed: fixed)">#5037</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Fri, 11 Feb 2011 04:11:28 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5037#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5037#comment:3</guid> <description> <p> This has been fixed in trunk and release. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Fri, 11 Feb 2011 04:11:45 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5037#comment:4 https://svn.boost.org/trac10/ticket/5037#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket