~ubuntu-branches/ubuntu/jaunty/libwpd/jaunty

« back to all changes in this revision

Viewing changes to src/test/test.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-11-21 17:45:38 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20071121174538-ue68b9jzc5y8wq8e
Tags: 0.8.12-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Add debian/patches/gcc43.diff and build rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
 
96
96
        // test read()
97
97
        input->seek(0, WPX_SEEK_SET);
98
 
        CPPUNIT_ASSERT ( NULL != input->read(0, numBytesRead)  );
 
98
        CPPUNIT_ASSERT ( NULL == input->read(0, numBytesRead)  );
99
99
        CPPUNIT_ASSERT_EQUAL ( (size_t) 0, numBytesRead );
100
100
        CPPUNIT_ASSERT_EQUAL ( (long int) 0 , input->tell() );
101
101
        CPPUNIT_ASSERT ( NULL != input->read(1, numBytesRead)  );
163
163
 
164
164
        // test read()
165
165
        input->seek(0, WPX_SEEK_SET);
166
 
        CPPUNIT_ASSERT ( NULL != input->read(0, numBytesRead)  );
 
166
        CPPUNIT_ASSERT ( NULL == input->read(0, numBytesRead)  );
167
167
        CPPUNIT_ASSERT_EQUAL ( (size_t) 0, numBytesRead );
168
168
        CPPUNIT_ASSERT_EQUAL ( (long int) 0 , input->tell() );
169
169
        CPPUNIT_ASSERT ( NULL != input->read(1, numBytesRead)  );
229
229
 
230
230
        // test read()
231
231
        input->seek(0, WPX_SEEK_SET);
232
 
        CPPUNIT_ASSERT ( NULL != input->read(0, numBytesRead)  );
 
232
        CPPUNIT_ASSERT ( NULL == input->read(0, numBytesRead)  );
233
233
        CPPUNIT_ASSERT_EQUAL ( (size_t) 0, numBytesRead );
234
234
        CPPUNIT_ASSERT_EQUAL ( (long int) 0 , input->tell() );
235
235
        CPPUNIT_ASSERT ( NULL != input->read(1, numBytesRead)  );
296
296
 
297
297
        // test read()
298
298
        input->seek(0, WPX_SEEK_SET);
299
 
        CPPUNIT_ASSERT ( NULL != input->read(0, numBytesRead)  );
 
299
        CPPUNIT_ASSERT ( NULL == input->read(0, numBytesRead)  );
300
300
        CPPUNIT_ASSERT_EQUAL ( (size_t) 0, numBytesRead );
301
301
        CPPUNIT_ASSERT_EQUAL ( (long int) 0 , input->tell() );
302
302
        CPPUNIT_ASSERT ( NULL != input->read(1, numBytesRead)  );