23 #ifdef HAVE_TEUCHOSCORE_QUADMATH
24 out <<
"Test operator<< (std::ostream&, __float128)" << endl;
27 __float128 y = strtoflt128 (
"1.111112222233333", NULL);
30 __float128 z = strtoflt128 (
"1.111112222233333444445555566666", NULL);
35 std::ostringstream os;
40 std::ostringstream os;
45 std::ostringstream os;
55 out <<
"Test chaining operator<<:" << endl
56 <<
"z = " << z <<
", it really does." << endl;
65 out <<
"Testing chaining operator<< with array entries:" << endl
66 <<
"a[0] = " << a[0] <<
", a[1] = " << a[1] <<
", a[2] = " << a[2]
71 arrayOfFloat128[0] = z;
72 tupleOfFloat128[0] = z;
93 std::string s1 (
"Some string");
94 out <<
"Hello there! \"" << s1 <<
"\" is a string that doesn't mean anything "
95 "on its own, but just makes this line of code more like the line of code "
96 "that doesn't compile. arrayViewOfFloat128[0] = " << arrayViewOfFloat128[0]
97 <<
" and tupleOfFloat128[0] = " << tupleOfFloat128[0] <<
"." << endl;
103 const std::string z_str (
"1.111112222233333444445555566666");
104 std::istringstream is (z_str);
105 __float128 z_copy = 0.0;
111 out <<
"This test only makes sense to run with libquadmath enabled." << endl;
112 #endif // HAVE_TEUCHOSCORE_QUADMATH
#define TEUCHOS_UNIT_TEST(TEST_GROUP, TEST_NAME)
Macro for defining a (non-templated) unit test.
Tabbing class for helping to create formated, indented output for a basic_FancyOStream object...
Statically sized simple array (tuple) class.
#define TEST_EQUALITY_CONST(v1, v2)
Assert the equality of v1 and constant v2.
Templated array class derived from the STL std::vector.
#define TEST_COMPARE_ARRAYS(a1, a2)
Assert that a1.size()==a2.size() and a[i]==b[i], i=0....
Defines basic traits for the scalar field type.
Replacement for std::vector that is compatible with the Teuchos Memory Management classes...