Lines Matching defs:ostr

68   static string reset_stream(ostringstream &ostr)
70 string tmp = ostr.str();
71 ostr.str("");
403 ostringstream ostr;
404 ostr << 1.23457e+17f;
405 CPPUNIT_ASSERT(ostr.good());
406 output = reset_stream(ostr);
413 ostringstream ostr;
414 ostr << setprecision(200) << 1.23457e+17f;
415 CPPUNIT_ASSERT(ostr.good());
416 output = reset_stream(ostr);
421 ostringstream ostr;
422 ostr << setprecision(200) << numeric_limits<float>::min();
423 CPPUNIT_ASSERT(ostr.good());
424 output = reset_stream(ostr);
429 ostringstream ostr;
430 ostr << fixed << 1.23457e+17f;
431 CPPUNIT_ASSERT(ostr.good());
432 output = reset_stream(ostr);
439 ostringstream ostr;
440 ostr << fixed << showpos << 1.23457e+17f;
441 CPPUNIT_ASSERT(ostr.good());
442 output = reset_stream(ostr);
449 ostringstream ostr;
450 ostr << fixed << showpos << setprecision(100) << 1.23457e+17f;
451 CPPUNIT_ASSERT(ostr.good());
452 output = reset_stream(ostr);
459 ostringstream ostr;
460 ostr << scientific << setprecision(8) << 0.12345678f;
461 CPPUNIT_ASSERT(ostr.good());
462 output = reset_stream(ostr);
469 ostringstream ostr;
470 ostr << fixed << setprecision(8) << setw(30) << setfill('0') << 0.12345678f;
471 CPPUNIT_ASSERT(ostr.good());
472 output = reset_stream(ostr);
477 ostringstream ostr;
478 ostr << fixed << showpos << setprecision(8) << setw(30) << setfill('0') << 0.12345678f;
479 CPPUNIT_ASSERT(ostr.good());
480 output = reset_stream(ostr);
485 ostringstream ostr;
486 ostr << fixed << showpos << setprecision(8) << setw(30) << left << setfill('0') << 0.12345678f;
487 CPPUNIT_ASSERT(ostr.good());
488 output = reset_stream(ostr);
493 ostringstream ostr;
494 ostr << fixed << showpos << setprecision(8) << setw(30) << internal << setfill('0') << 0.12345678f;
495 CPPUNIT_ASSERT(ostr.good());
496 output = reset_stream(ostr);
501 ostringstream ostr;
502 ostr << fixed << showpos << setprecision(100) << 1.234567e+17;
503 CPPUNIT_ASSERT(ostr.good());
504 output = reset_stream(ostr);
512 ostringstream ostr;
513 ostr << fixed << showpos << setprecision(100) << 1.234567e+17l;
514 CPPUNIT_ASSERT(ostr.good());
515 output = reset_stream(ostr);
523 ostringstream ostr;
524 ostr << scientific << setprecision(50) << 0.0;
525 CPPUNIT_ASSERT(ostr.good());
526 output = reset_stream(ostr);
530 ostringstream ostr;
531 ostr << fixed << setprecision(100) << numeric_limits<float>::max();
532 CPPUNIT_ASSERT(ostr.good());
533 output = reset_stream(ostr);
538 ostringstream ostr;
539 ostr << setprecision(100) << numeric_limits<double>::max();
540 CPPUNIT_ASSERT(ostr.good());
541 output = reset_stream(ostr);
547 ostringstream ostr;
548 ostr << setprecision(100) << numeric_limits<long double>::max();
549 CPPUNIT_ASSERT(ostr.good());
550 output = reset_stream(ostr);
556 // ostringstream ostr;
557 // ostr << setprecision(-numeric_limits<float>::min_exponent10 + numeric_limits<float>::digits10 + 9) << numeric_limits<float>::min();
558 // CPPUNIT_ASSERT(ostr.good());
559 // output = reset_stream(ostr);
564 // ostringstream ostr;
565 // ostr << setprecision(-numeric_limits<double>::min_exponent10 + numeric_limits<double>::digits10) << numeric_limits<double>::min();
566 // CPPUNIT_ASSERT(ostr.good());
567 // output = reset_stream(ostr);
573 // ostringstream ostr;
574 // ostr << setprecision(-numeric_limits<long double>::min_exponent10 + numeric_limits<long double>::digits10) << numeric_limits<long double>::min();
575 // CPPUNIT_ASSERT(ostr.good());
576 // output = reset_stream(ostr);
617 ostringstream ostr; \
618 ostr << base << showbase << showpos << casing << setw(width) << adjust << tmp; \
619 CPPUNIT_CHECK( ostr.str() == expected ); \