13 #include <tst/Verify.h>
14 #include <utl/ReadStream.h>
15 #include <cppunit/extensions/HelperMacros.h>
46 "6 11 \r 1 # /* bar \n"
47 "7 12 0 // what # fool\n"
49 "8 14 1 # baz // some \n"
50 "/* cc */ 9 15 1 /**//**/ \n"
51 "/* crap *//* more crap */ \n"
52 "///* an abundance of crap \n"
53 "\t 10 /*foo*/16 /* *//**/ 0 \n";
92 "6 11 \r 1 # /* bar ",
93 "7 12 0 // what # fool",
94 "8 14 1 # baz // some ",
95 "/* cc */ 9 15 1 /**//**/ ",
96 "/* crap *//* more crap */ ",
97 "///* an abundance of crap ",
98 "\t 10 /*foo*/16 /* *//**/ 0 "
108 CPPUNIT_TEST(TestVectorData);
109 CPPUNIT_TEST(TestVectorString);
110 CPPUNIT_TEST(TestVectorStringNoStripping);
111 CPPUNIT_TEST_SUITE_END();
124 CPPUNIT_ASSERT(v.size() == Length(
result));
125 for (
unsigned int i = 0, n = v.size(); i < n; ++i) {
126 CPPUNIT_ASSERT(Verify<Equal>(v[i].fTime,
result[i].fTime));
127 CPPUNIT_ASSERT(Verify<Equal>(v[i].fPressure,
result[i].fPressure));
128 CPPUNIT_ASSERT(Verify<Equal>(v[i].fFlag,
result[i].fFlag));
139 for (
unsigned int i = 0, n = v.size(); i < n; ++i)
150 for (
unsigned int i = 0, n = v.size(); i < n; ++i)
void operator>>(const Event &theEvent, IoSdEvent &rawSEvent)
const string stringResult[]
bool is(const double a, const double b)
CPPUNIT_TEST_SUITE_REGISTRATION(testAiresShowerFile)
void TestVectorStringNoStripping()
void GetLines(std::vector< T > &v, const bool filterComments=true, const bool trim=false)
const string stringResultNoStripping[]