55 #ifdef HAVE_TEUCHOSCORE_QUADMATH
56 out <<
"Test operator<< (std::ostream&, __float128)" << endl;
59 __float128 y = strtoflt128 (
"1.111112222233333", NULL);
62 __float128 z = strtoflt128 (
"1.111112222233333444445555566666", NULL);
67 std::ostringstream os;
72 std::ostringstream os;
77 std::ostringstream os;
87 out <<
"Test chaining operator<<:" << endl
88 <<
"z = " << z <<
", it really does." << endl;
97 out <<
"Testing chaining operator<< with array entries:" << endl
98 <<
"a[0] = " << a[0] <<
", a[1] = " << a[1] <<
", a[2] = " << a[2]
103 arrayOfFloat128[0] = z;
104 tupleOfFloat128[0] = z;
125 std::string s1 (
"Some string");
126 out <<
"Hello there! \"" << s1 <<
"\" is a string that doesn't mean anything "
127 "on its own, but just makes this line of code more like the line of code "
128 "that doesn't compile. arrayViewOfFloat128[0] = " << arrayViewOfFloat128[0]
129 <<
" and tupleOfFloat128[0] = " << tupleOfFloat128[0] <<
"." << endl;
135 const std::string z_str (
"1.111112222233333444445555566666");
136 std::istringstream is (z_str);
137 __float128 z_copy = 0.0;
143 out <<
"This test only makes sense to run with libquadmath enabled." << endl;
144 #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...