23 using std::ostringstream;
64 QCOMPARE(fs2.
count(),6);
68 QCOMPARE(fs4.
count(), 1);
75 QCOMPARE(fv.size(), 6u);
85 QCOMPARE(fs2.
count(),6);
89 QCOMPARE(fs4.
count(), 1);
96 QCOMPARE(fv.size(), 6u);
107 QCOMPARE(fs2.
count(),3);
109 QCOMPARE(fv.size(), 3u);
110 QList<QhullFacet> fv2= fs2.toQList();
111 QCOMPARE(fv2.size(), 3);
113 QCOMPARE(fv5.size(), 7u);
114 QList<QhullVertex> fv6= fs2.vertices_toQList();
115 QCOMPARE(fv6.size(), 7);
119 QCOMPARE(fv3.size(), 6u);
120 QList<QhullFacet> fv4= fs2.toQList();
121 QCOMPARE(fv4.size(), 6);
123 QCOMPARE(fv7.size(), 8u);
124 QList<QhullVertex> fv8= fs2.vertices_toQList();
125 QCOMPARE(fv8.size(), 8);
136 QCOMPARE(fs.
count(), 3);
137 QCOMPARE(fs.
first(),
q.firstFacet());
140 QCOMPARE(fs.
count(), 6);
143 QCOMPARE(fs.
count(), 3);
146 QCOMPARE(fs.
count(), 6);
170 QCOMPARE(*(fs.
end()-1), fs.
last());
171 QCOMPARE(fs.
first(),
q.firstFacet());
172 QCOMPARE(*fs.
begin(),
q.beginFacet());
173 QCOMPARE(*fs.
end(),
q.endFacet());
184 os << fs.
print(
"Show all of FacetList\n");
185 os <<
"\nFacets only\n" << fs;
188 QString facets= QString::fromStdString(os.str());
189 QCOMPARE(facets.count(
"(v"), 2*7+12*3*2);
190 QCOMPARE(facets.count(QRegExp(
"f\\d")), 2*3*7 + 13*3*2);
196 #include "moc/QhullFacetList_test.moc"