18 using std::ostringstream;
 
   20 using std::stringstream;
 
   52     QCOMPARE(rp.
count(), 0);
 
   53     QVERIFY(QString::fromStdString(rp.
comment()) != QString(
""));
 
   57     QCOMPARE(QString::fromStdString(rp.
rboxMessage()), QString(
"rbox warning: no points generated\n"));
 
   61     QCOMPARE(rp2.
count(), 8);
 
   62     QCOMPARE(QString::fromStdString(rp2.
comment()), QString(
"rbox \"c\""));
 
   66     QCOMPARE(QString::fromStdString(rp2.
rboxMessage()), QString(
"rbox: OK\n"));
 
   75         QFAIL(
"'D0 c' did not fail.");
 
   76     }
catch (
const std::exception &e) {
 
   77         const char *s= e.what();
 
   78         cout << 
"INFO   : Caught " << s;
 
   79         QCOMPARE(QString(s).left(6), QString(
"QH6189"));
 
   81         QCOMPARE(QString::fromStdString(rp.
rboxMessage()).left(8), QString(
"rbox err"));
 
   89         QFAIL(
"setDimension(-1) did not fail.");
 
   91         const char *s= e.
what();
 
   92         cout << 
"INFO   : Caught " << s;
 
   93         QCOMPARE(QString(s).left(7), QString(
"QH10062"));
 
   95         QCOMPARE(QString::fromStdString(e.
what()), QString(s));
 
   97         QCOMPARE(logEvent.
int1(), -1);
 
  120         QFAIL(
"setDimension(102) did not fail.");
 
  121     }
catch (
const std::exception &e) {
 
  122         cout << 
"INFO   : Caught " << e.what();
 
  126     QCOMPARE(rp.
count(), 2);
 
  129     pc << 1.0 << 0.0 << 2.0 << 0.0;
 
  131     QCOMPARE(pc.
count(), 2);
 
  145     QCOMPARE(*cci, -0.5);
 
  159     QCOMPARE(cci5-cci4, 4*3);
 
  167     s << 
"4 count" << endl;
 
  168     s << 
"2 dimension" << endl;
 
  169     s << 
"1 2 3 4 5 6 7 8" << endl;
 
  171     QCOMPARE(rp.
count(), 8);
 
  176         s2 << 
"4 count" << endl;
 
  177         s2 << 
"2 dimension" << endl;
 
  178         s2 << 
"1 2 3 4 5 6 7 " << endl;
 
  180         QFAIL(
"incomplete appendPoints() did not fail.");
 
  181     }
catch (
const std::exception &e) {
 
  182         cout << 
"INFO   : Caught " << e.what();
 
  186     QCOMPARE(rp2.
count(), 8);
 
  188     QCOMPARE(*(cci2+1), 6.0);
 
  190     QCOMPARE(rp2.
count(), 19);
 
  194     coordT points[] = { 0, 1,1,0,1,1,0,0};
 
  197     QCOMPARE(rp3.
count(), 4);
 
  209     QString qs= QString::fromStdString(s);
 
  210     QCOMPARE(qs.count(
"-0.5"), 4);
 
  215 #include "moc/RboxPoints_test.moc"