Home | History | Annotate | Download | only in unit

Lines Matching refs:ostr

68   static string reset_stream(ostringstream &ostr)
70 string tmp = ostr.str();
71 ostr.str("");
395 ostringstream ostr;
396 ostr << 1.23457e+17f;
397 CPPUNIT_ASSERT(ostr.good());
398 output = reset_stream(ostr);
405 ostringstream ostr;
406 ostr << setprecision(200) << 1.23457e+17f;
407 CPPUNIT_ASSERT(ostr.good());
408 output = reset_stream(ostr);
413 ostringstream ostr;
414 ostr << setprecision(200) << numeric_limits<float>::min();
415 CPPUNIT_ASSERT(ostr.good());
416 output = reset_stream(ostr);
421 ostringstream ostr;
422 ostr << fixed << 1.23457e+17f;
423 CPPUNIT_ASSERT(ostr.good());
424 output = reset_stream(ostr);
431 ostringstream ostr;
432 ostr << fixed << showpos << 1.23457e+17f;
433 CPPUNIT_ASSERT(ostr.good());
434 output = reset_stream(ostr);
441 ostringstream ostr;
442 ostr << fixed << showpos << setprecision(100) << 1.23457e+17f;
443 CPPUNIT_ASSERT(ostr.good());
444 output = reset_stream(ostr);
451 ostringstream ostr;
452 ostr << scientific << setprecision(8) << 0.12345678; // float doesn't have enough precision, 0.12345678f ended up 0.1234567836..
453 CPPUNIT_ASSERT(ostr.good());
454 output = reset_stream(ostr);
461 ostringstream ostr;
462 ostr << fixed << setprecision(8) << setw(30) << setfill('0') << 0.12345678f;
463 CPPUNIT_ASSERT(ostr.good());
464 output = reset_stream(ostr);
469 ostringstream ostr;
470 ostr << fixed << showpos << 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) << left << 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) << internal << setfill('0') << 0.12345678f;
487 CPPUNIT_ASSERT(ostr.good());
488 output = reset_stream(ostr);
493 ostringstream ostr;
494 ostr << fixed << showpos << setprecision(100) << 1.234567e+17;
495 CPPUNIT_ASSERT(ostr.good());
496 output = reset_stream(ostr);
504 ostringstream ostr;
505 ostr << fixed << showpos << setprecision(100) << 1.234567e+17l;
506 CPPUNIT_ASSERT(ostr.good());
507 output = reset_stream(ostr);
515 ostringstream ostr;
516 ostr << scientific << setprecision(50) << 0.0;
517 CPPUNIT_ASSERT(ostr.good());
518 output = reset_stream(ostr);
522 ostringstream ostr;
523 ostr << fixed << setprecision(100) << numeric_limits<float>::max();
524 CPPUNIT_ASSERT(ostr.good());
525 output = reset_stream(ostr);
530 ostringstream ostr;
531 ostr << setprecision(100) << numeric_limits<double>::max();
532 CPPUNIT_ASSERT(ostr.good());
533 output = reset_stream(ostr);
539 ostringstream ostr;
540 ostr << setprecision(100) << numeric_limits<long double>::max();
541 CPPUNIT_ASSERT(ostr.good());
542 output = reset_stream(ostr);
548 // ostringstream ostr;
549 // ostr << setprecision(-numeric_limits<float>::min_exponent10 + numeric_limits<float>::digits10 + 9) << numeric_limits<float>::min();
550 // CPPUNIT_ASSERT(ostr.good());
551 // output = reset_stream(ostr);
556 // ostringstream ostr;
557 // ostr << setprecision(-numeric_limits<double>::min_exponent10 + numeric_limits<double>::digits10) << numeric_limits<double>::min();
558 // CPPUNIT_ASSERT(ostr.good());
559 // output = reset_stream(ostr);
565 // ostringstream ostr;
566 // ostr
567 // CPPUNIT_ASSERT(ostr.good());
568 // output = reset_stream(ostr);
609 ostringstream ostr; \
610 ostr << base << showbase << showpos << casing << setw(width) << adjust << tmp; \
611 CPPUNIT_CHECK( ostr.str() == expected ); \