ObjFW  Diff

Differences From Artifact [c77a7c32e4]:

To Artifact [9af27af9d8]:


110
111
112
113
114
115
116
117
118

119
120

121
122
123
124
125
126
127
128
129


130
131
132
133
134
135
136
137
138
110
111
112
113
114
115
116


117


118



119
120
121



122
123
124
125
126
127
128
129
130
131
132







-
-
+
-
-
+
-
-
-



-
-
-
+
+









	    R([foobar removeValueForKey: @"quxqux "]) &&
	    R([types removeValueForKey: @"array2"]))

	module = @"OFINIFile";

	/* FIXME: Find a way to write files on Nintendo DS */
#ifndef OF_NINTENDO_DS
# ifndef OF_IOS
	writePath = @"tmpfile.ini";
	writePath = [[OFSystemInfo temporaryDirectoryPath]
# else
	writePath = [OFString pathWithComponents: [OFArray arrayWithObjects:
	    stringByAppendingPathComponent: @"objfw-tests.ini"];
	    [[OFApplication environment] objectForKey: @"HOME"],
	    @"tmp", @"tmpfile.ini", nil]];
# endif
	TEST(@"-[writeToFile:encoding:]",
	    R([file writeToFile: writePath
		       encoding: OFStringEncodingCodepage437]) &&
	    [[OFString
		stringWithContentsOfFile: writePath
				encoding: OFStringEncodingCodepage437]
	    [[OFString stringWithContentsOfFile: writePath
				       encoding: OFStringEncodingCodepage437]
	    isEqual: output])
	[[OFFileManager defaultManager] removeItemAtPath: writePath];
#else
	(void)output;
#endif

	objc_autoreleasePoolPop(pool);
}
@end