Lines Matching refs:oss

30         std::ostringstream oss;  variable
31 oss << real128{"1.1"};
33 REQUIRE(oss.str() == "1.1");
38 std::ostringstream oss; variable
39 oss << std::scientific << real128{"1.1"};
41 REQUIRE(oss.str() == "1.100000e+00");
43 oss.str("");
45 oss << std::uppercase << real128{"1.1"};
46 REQUIRE(oss.str() == "1.100000E+00");
48 oss.str("");
50 oss << real128{"inf"};
51 REQUIRE(oss.str() == "INF");
56 std::ostringstream oss; variable
57 oss << std::fixed << real128{"1.1"};
59 REQUIRE(oss.str() == "1.100000");
61 oss.str("");
63 oss << std::uppercase << real128{"inf"};
64 REQUIRE(oss.str() == "inf");
69 std::ostringstream oss; variable
70 oss << std::hexfloat << real128{"1.1"};
72 REQUIRE(oss.str() == "0x1.199999999999999999999999999ap+0");
74 oss.str("");
76 oss << std::uppercase << real128{"1.1"};
78 REQUIRE(oss.str() == "0X1.199999999999999999999999999AP+0");
83 std::ostringstream oss; variable
84 oss << std::showpoint << real128{"42"};
86 REQUIRE(oss.str() == "42.0000");
88 oss.str("");
90 oss << std::scientific << real128{"42"};
92 REQUIRE(oss.str() == "4.200000e+01");
97 std::ostringstream oss; variable
98 oss << std::showpos << real128{"1.1"};
100 REQUIRE(oss.str() == "+1.1");
102 oss.str("");
104 oss << std::scientific << real128{"1.1"};
106 REQUIRE(oss.str() == "+1.100000e+00");
108 oss.str("");
110 oss << std::hexfloat << real128{"1.1"};
112 REQUIRE(oss.str() == "+0x1.199999999999999999999999999ap+0");
117 std::ostringstream oss; variable
118 oss << std::showpoint << std::setprecision(10) << real128{"42"};
120 REQUIRE(oss.str() == "42.00000000");
122 oss.str("");
124 oss << std::scientific << real128{"42"};
126 REQUIRE(oss.str() == "4.2000000000e+01");
128 oss.str("");
130 oss << std::setprecision(20) << std::showpos << real128{"1.1"};
132 REQUIRE(oss.str() == "+1.10000000000000000000e+00");
134 oss.str("");
136 oss << std::setprecision(36) << std::showpos << real128{"1.1"};
138 REQUIRE(oss.str() == "+1.100000000000000000000000000000000077e+00");
143 std::ostringstream oss; variable
144 oss << std::setw(20) << std::setfill('*') << std::right << real128{"1.1"};
146 REQUIRE(oss.str() == "*****************1.1");
148 oss.str("");
150 oss << std::setw(20) << std::showpos << real128{"1.1"};
152 REQUIRE(oss.str() == "****************+1.1");
154 oss.str("");
156 oss << std::setw(20) << real128{"-1.1"};
158 REQUIRE(oss.str() == "****************-1.1");
163 std::ostringstream oss; variable
164 oss << std::setw(20) << std::setfill('*') << std::left << real128{"1.1"};
166 REQUIRE(oss.str() == "1.1*****************");
168 oss.str("");
170 oss << std::setw(20) << std::showpos << real128{"1.1"};
172 REQUIRE(oss.str() == "+1.1****************");
174 oss.str("");
176 oss << std::setw(20) << real128{"-1.1"};
178 REQUIRE(oss.str() == "-1.1****************");
183 std::ostringstream oss; variable
184 oss << std::setw(20) << std::setfill('*') << std::internal << real128{"1.1"};
186 REQUIRE(oss.str() == "*****************1.1");
188 oss.str("");
190 oss << std::setw(20) << std::showpos << real128{"1.1"};
192 REQUIRE(oss.str() == "+****************1.1");
194 oss.str("");
196 oss << std::setw(20) << real128{"-1.1"};
198 REQUIRE(oss.str() == "-****************1.1");
200 oss.str("");
202 oss << std::setw(20) << std::fixed << real128{"1.1"};
204 REQUIRE(oss.str() == "+***********1.100000");
206 oss.str("");
208 oss << std::setw(20) << std::scientific << real128{"-1.1"};
210 REQUIRE(oss.str() == "-*******1.100000e+00");
212 oss.str("");
214 oss << std::setw(20) << std::hexfloat << real128{"1.1"};
216 REQUIRE(oss.str() == "+0x1.199999999999999999999999999ap+0");
218 oss.str("");
220 oss << std::setw(60) << std::hexfloat << real128{"-1.1"};
222 REQUIRE(oss.str() == "-************************0x1.199999999999999999999999999ap+0");
225 oss.str("");
227 oss << real128{"-1.1"};
229 REQUIRE(oss.str() == "-0x1.199999999999999999999999999ap+0");
234 std::ostringstream oss; variable
235 oss << std::setprecision(-1) << real128{"1.1"};
237 REQUIRE(oss.str() == "1.1");
239 oss.str("");
241 oss << std::scientific << real128{"-1.1"};
243 REQUIRE(oss.str() == "-1.100000e+00");
245 oss.str("");
247 oss << std::fixed << real128{"-1.1"};
249 REQUIRE(oss.str() == "-1.100000");
251 oss.str("");
253 oss << std::hexfloat << real128{"-1.1"};
255 REQUIRE(oss.str() == "-0x1.199999999999999999999999999ap+0");
260 std::ostringstream oss; variable
261 oss << std::setprecision(0) << real128{"1.1"};
263 REQUIRE(oss.str() == "1");
265 oss.str("");
267 oss << std::scientific << real128{"-1.1"};
269 REQUIRE(oss.str() == "-1e+00");
271 oss.str("");
273 oss << std::fixed << real128{"-1.1"};
275 REQUIRE(oss.str() == "-1");
277 oss.str("");
279 oss << std::hexfloat << real128{"-1.1"};
281 REQUIRE(oss.str() == "-0x1.199999999999999999999999999ap+0");
286 std::ostringstream oss; variable
287 oss << std::setprecision(0) << real128{"0"};
289 REQUIRE(oss.str() == "0");
354 std::ostringstream oss; in check_round_trip() local
355 oss << std::setprecision(std::numeric_limits<real128>::max_digits10) << r; in check_round_trip()
356 REQUIRE(oss.str() == tmp); in check_round_trip()
357 REQUIRE(oss.str() == r.to_string()); in check_round_trip()