104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
category = [file categoryForName: @"foobar"];
TEST(@"-[removeValueForKey:]",
R([category removeValueForKey: @"quxqux"]))
module = @"OFINIFile";
TEST(@"-[writeToFile:]", R([file writeToFile: @"tmpfile.ini"]) &&
[[OFString stringWithContentsOfFile: @"tmpfile.ini"]
isEqual: output])
[OFFile removeItemAtPath: @"tmpfile.ini"];
[pool drain];
}
@end
|
>
>
>
>
>
|
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
category = [file categoryForName: @"foobar"];
TEST(@"-[removeValueForKey:]",
R([category removeValueForKey: @"quxqux"]))
module = @"OFINIFile";
/* FIXME: Find a way to write files on Nintendo DS */
#ifndef OF_NINTENDO_DS
TEST(@"-[writeToFile:]", R([file writeToFile: @"tmpfile.ini"]) &&
[[OFString stringWithContentsOfFile: @"tmpfile.ini"]
isEqual: output])
[OFFile removeItemAtPath: @"tmpfile.ini"];
#else
(void)output;
#endif
[pool drain];
}
@end
|