~jeanfrancois.roy/mpqkit/testsuite

« back to all changes in this revision

Viewing changes to core.m

  • Committer: bahamut
  • Date: 2008-03-03 17:58:10 UTC
  • Revision ID: svn-v4:08a27de9-96f8-0310-9aec-cd9f9b5b01a8:tests:246
- Refactored some constants so that they begin with MPQ_.
- Added MPQ_BASE_SECTOR_SIZE to the shared constants.
- Additional reading test cases.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
        STAssertNil(error, @"error should be nil on success");
46
46
        
47
47
        // file limit should be MIN_HASH_TABLE_LENGTH
48
 
        STAssertEquals([archive maximumNumberOfFiles], (uint32_t)MIN_HASH_TABLE_LENGTH, @"[archive maximumNumberOfFiles] did not return MIN_HASH_TABLE_LENGTH");
 
48
        STAssertEquals([archive maximumNumberOfFiles], (uint32_t)MPQ_MIN_HASH_TABLE_LENGTH, @"[archive maximumNumberOfFiles] did not return MPQ_MIN_HASH_TABLE_LENGTH");
49
49
        // archive should be modified
50
50
        STAssertTrue([archive modified], @"archive should be modified after creation");
51
51
        // path should be nil
92
92
        STAssertNil(error, @"error should be nil on success");
93
93
        
94
94
        // file limit should be MIN_HASH_TABLE_LENGTH
95
 
        STAssertEquals([archive maximumNumberOfFiles], (uint32_t)MIN_HASH_TABLE_LENGTH, @"[archive maximumNumberOfFiles] did not return MIN_HASH_TABLE_LENGTH");
 
95
        STAssertEquals([archive maximumNumberOfFiles], (uint32_t)MPQ_MIN_HASH_TABLE_LENGTH, @"[archive maximumNumberOfFiles] did not return MPQ_MIN_HASH_TABLE_LENGTH");
96
96
        // archive should be modified
97
97
        STAssertTrue([archive modified], @"archive should be modified after creation");
98
98
        // path should be nil