• Home
  • Raw
  • Download

Lines Matching refs:CPPUNIT_ASSERT

72     CPPUNIT_ASSERT( s.good() );  in output()
73 CPPUNIT_ASSERT( s.str() == "1\n2\nabcd\nghk lm\nabcd ef" ); in output()
82 CPPUNIT_ASSERT( s.good() ); in output()
83 CPPUNIT_ASSERT( s.str() == "0" ); in output()
89 CPPUNIT_ASSERT( s.good() ); in output()
90 CPPUNIT_ASSERT( s.str() == "0" ); in output()
100 CPPUNIT_ASSERT( s.good() ); in input()
101 CPPUNIT_ASSERT( i == 1 ); in input()
104 CPPUNIT_ASSERT( s.good() ); in input()
105 CPPUNIT_ASSERT( d == 2.0 ); in input()
108 CPPUNIT_ASSERT( s.good() ); in input()
109 CPPUNIT_ASSERT( str == "abcd" ); in input()
112 CPPUNIT_ASSERT( s.good() ); in input()
113 CPPUNIT_ASSERT( c == '\n' ); in input()
115 CPPUNIT_ASSERT( s.good() ); in input()
116 CPPUNIT_ASSERT( str == "ghk lm" ); in input()
118 CPPUNIT_ASSERT( s.eof() ); in input()
119 CPPUNIT_ASSERT( str == "abcd ef" ); in input()
125 CPPUNIT_ASSERT( !s.fail() ); in input()
126 CPPUNIT_ASSERT( s.eof() ); in input()
127 CPPUNIT_ASSERT( i == 0 ); in input()
137 CPPUNIT_ASSERT( buf[0] == '0' ); in input_char()
138 CPPUNIT_ASSERT( buf[1] == 0 ); in input_char()
139 CPPUNIT_ASSERT( buf[2] == '2' ); in input_char()
147 CPPUNIT_ASSERT( s.good() ); in io()
151 CPPUNIT_ASSERT( i == 1 ); in io()
152 CPPUNIT_ASSERT( s.good() ); in io()
155 CPPUNIT_ASSERT( d == 2.0 ); in io()
156 CPPUNIT_ASSERT( s.good() ); in io()
159 CPPUNIT_ASSERT( str == "abcd" ); in io()
160 CPPUNIT_ASSERT( s.good() ); in io()
163 CPPUNIT_ASSERT( s.good() ); in io()
164 CPPUNIT_ASSERT( c == '\n' ); in io()
166 CPPUNIT_ASSERT( s.good() ); in io()
167 CPPUNIT_ASSERT( str == "ghk lm" ); in io()
169 CPPUNIT_ASSERT( str == "abcd ef" ); in io()
170 CPPUNIT_ASSERT( s.eof() ); in io()
179 CPPUNIT_ASSERT( !s.fail() ); in err()
180 CPPUNIT_ASSERT( i == 9 ); in err()
182 CPPUNIT_ASSERT( s.fail() ); in err()
183 CPPUNIT_ASSERT( s.eof() ); in err()
184 CPPUNIT_ASSERT( i == 9 ); in err()
193 CPPUNIT_ASSERT( !s.fail() ); in err_long()
194 CPPUNIT_ASSERT( i == 9 ); in err_long()
196 CPPUNIT_ASSERT( s.fail() ); in err_long()
197 CPPUNIT_ASSERT( s.eof() ); in err_long()
198 CPPUNIT_ASSERT( i == 9 ); in err_long()
207 CPPUNIT_ASSERT( s.good() ); in maxint()
215 CPPUNIT_ASSERT( s.good() ); in maxint()
216 CPPUNIT_ASSERT( i == INT_MAX ); in maxint()
217 CPPUNIT_ASSERT( u == UINT_MAX ); in maxint()
218 CPPUNIT_ASSERT( l == LONG_MAX ); in maxint()
219 CPPUNIT_ASSERT( ul == ULONG_MAX ); in maxint()
222 CPPUNIT_ASSERT( !s.fail() ); in maxint()
223 CPPUNIT_ASSERT( i == INT_MIN ); in maxint()
224 CPPUNIT_ASSERT( l == LONG_MIN ); in maxint()
233 CPPUNIT_ASSERT( !is.fail() ); in init_in()
234 CPPUNIT_ASSERT( n == 12345 ); in init_in()
240 CPPUNIT_ASSERT( !dis.fail() ); in init_in()
241 CPPUNIT_ASSERT( are_equals(d, 1.2345) ); in init_in()
247 CPPUNIT_ASSERT( !fis.fail() ); in init_in()
248 CPPUNIT_ASSERT( are_equals(f, 1.2345f) ); in init_in()
254 CPPUNIT_ASSERT( os.str() == "12345" ); in init_out()
257 CPPUNIT_ASSERT( os.good() ); in init_out()
275 CPPUNIT_ASSERT( os.str() == "1234567" ); in init_out()
279 CPPUNIT_ASSERT( os.str() == "89ab" ); in init_out()
282 CPPUNIT_ASSERT( os.good() ); in init_out()
284 CPPUNIT_ASSERT( os.str() == "89ab10" ); in init_out()
295 CPPUNIT_ASSERT( !ss.fail() ); in buf()
296 CPPUNIT_ASSERT( buf[0] == '1' ); in buf()
297 CPPUNIT_ASSERT( buf[1] == '2' ); in buf()
298 CPPUNIT_ASSERT( buf[2] == '3' ); in buf()
299 CPPUNIT_ASSERT( buf[3] == '4' ); in buf()
300 CPPUNIT_ASSERT( buf[4] == '5' ); in buf()
301 CPPUNIT_ASSERT( buf[5] == '6' ); in buf()
302 CPPUNIT_ASSERT( buf[6] == '7' ); // 27.6.1.3 paragraph 10, paragraph 7 in buf()
303 CPPUNIT_ASSERT( buf[7] == 0 ); // 27.6.1.3 paragraph 8 in buf()
306 CPPUNIT_ASSERT( !ss.fail() ); in buf()
307 CPPUNIT_ASSERT( c == '\n' ); // 27.6.1.3 paragraph 10, paragraph 7 in buf()
309 CPPUNIT_ASSERT( !ss.fail() ); in buf()
310 CPPUNIT_ASSERT( c == '8' ); in buf()
321 CPPUNIT_ASSERT( !ss.fail() ); in rdbuf()
324 CPPUNIT_ASSERT( !ss.fail() ); in rdbuf()
325 CPPUNIT_ASSERT( c == '\n' ); // 27.6.1.3 paragraph 12 in rdbuf()
326 CPPUNIT_ASSERT( os.str() == "1234567" ); in rdbuf()
333 CPPUNIT_ASSERT( in ); in streambuf_output()
337 CPPUNIT_ASSERT( out ); in streambuf_output()
340 CPPUNIT_ASSERT( out ); in streambuf_output()
341 CPPUNIT_ASSERT( in ); in streambuf_output()
343 CPPUNIT_ASSERT( full_buf.str() == "0123456789" ); in streambuf_output()
346 CPPUNIT_ASSERT( out.fail() ); in streambuf_output()
347 CPPUNIT_ASSERT( in ); in streambuf_output()
351 CPPUNIT_ASSERT( ostr ); in streambuf_output()
352 CPPUNIT_ASSERT( in ); in streambuf_output()
353 CPPUNIT_ASSERT( ostr.str() == "0123456789" ); in streambuf_output()
360 CPPUNIT_ASSERT( in ); in streambuf_output()
364 CPPUNIT_ASSERT( out ); in streambuf_output()
367 CPPUNIT_ASSERT( out.bad() ); in streambuf_output()
368 CPPUNIT_ASSERT( in ); in streambuf_output()
374 CPPUNIT_ASSERT( out.fail() && out.bad() ); in streambuf_output()
375 CPPUNIT_ASSERT( in ); in streambuf_output()
379 CPPUNIT_ASSERT( ostr ); in streambuf_output()
380 CPPUNIT_ASSERT( in ); in streambuf_output()
381 CPPUNIT_ASSERT( ostr.str() == "01234567890123456789" ); in streambuf_output()
390 CPPUNIT_ASSERT( s.tellg() == stringstream::pos_type(0) ); in seek()
392 CPPUNIT_ASSERT( s.tellg() == stringstream::pos_type(6) ); in seek()
394 CPPUNIT_ASSERT( s.tellg() == stringstream::pos_type(3) ); in seek()
397 CPPUNIT_ASSERT( is.tellg() == stringstream::pos_type(0) ); in seek()
399 CPPUNIT_ASSERT( is.tellg() == stringstream::pos_type(6) ); in seek()
401 CPPUNIT_ASSERT( is.tellg() == stringstream::pos_type(3) ); in seek()