Differences From Artifact [615272b5e0]:
- File tests/OFINIFileTests.m — part of check-in [cfd374b906] at 2015-01-03 20:57:18 on branch trunk — Update copyright (user: js, size: 4013) [annotate] [blame] [check-ins using]
To Artifact [437bbdc75f]:
- File
tests/OFINIFileTests.m
— part of check-in
[f3c452dfef]
at
2015-08-22 10:57:14
on branch trunk
— Move file management to its own class
This makes it possible to add support for delegates for file management
operations and on top makes it easier to add support for file management
operations on URLs. (user: js, size: 4063) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #include "config.h" #import "OFINIFile.h" #import "OFINICategory.h" #import "OFString.h" #import "OFArray.h" #import "OFFile.h" #import "OFAutoreleasePool.h" #import "TestsAppDelegate.h" #ifdef _WIN32 # define NL @"\r\n" #else | > | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #include "config.h" #import "OFINIFile.h" #import "OFINICategory.h" #import "OFString.h" #import "OFArray.h" #import "OFFile.h" #import "OFFileManager.h" #import "OFAutoreleasePool.h" #import "TestsAppDelegate.h" #ifdef _WIN32 # define NL @"\r\n" #else |
︙ | ︙ | |||
134 135 136 137 138 139 140 | TEST(@"-[writeToFile:encoding:]", R([file writeToFile: @"tmpfile.ini" encoding: OF_STRING_ENCODING_CODEPAGE_437]) && [[OFString stringWithContentsOfFile: @"tmpfile.ini" encoding: OF_STRING_ENCODING_CODEPAGE_437] isEqual: output]) | | | 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | TEST(@"-[writeToFile:encoding:]", R([file writeToFile: @"tmpfile.ini" encoding: OF_STRING_ENCODING_CODEPAGE_437]) && [[OFString stringWithContentsOfFile: @"tmpfile.ini" encoding: OF_STRING_ENCODING_CODEPAGE_437] isEqual: output]) [[OFFileManager defaultManager] removeItemAtPath: @"tmpfile.ini"]; #else (void)output; #endif [pool drain]; } @end |