~jeanfrancois.roy/mpqkit/testsuite

« back to all changes in this revision

Viewing changes to reading.m

  • Committer: bahamut
  • Date: 2008-03-02 22:51:12 UTC
  • Revision ID: svn-v4:08a27de9-96f8-0310-9aec-cd9f9b5b01a8:tests:244
- Removed usage of NS*Integer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
                STAssertEquals([file offsetInFile], (uint32_t)0, @"file offset not 0 after opening");
88
88
                
89
89
                // file length must match
90
 
                STAssertEquals((NSUInteger)[file length], [fileData length], @"file lengths are different");
 
90
                STAssertEquals((uint32_t)[file length], (uint32_t)[fileData length], @"file lengths are different");
91
91
                
92
92
                // test reading file from start to EOF
93
93
                
134
134
                        // operation must have failed with errInvalidOffset
135
135
                        STAssertEquals((int32_t)newOffset, (int32_t)-1, @"new offset should be -1 on impossible seek (once typecasted to int32_t)");
136
136
                        STAssertEqualObjects([error domain], MPQErrorDomain, @"error domain should be MPQErrorDomain");
137
 
                        STAssertEquals([error code], (NSInteger)errInvalidOffset, @"error code should be errInvalidOffset");
 
137
                        STAssertEquals((int32_t)[error code], (int32_t)errInvalidOffset, @"error code should be errInvalidOffset");
138
138
                        
139
139
                        [fileArchiveData release];
140
140
                        [file release];