49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
OFArray *array;
#if defined(OF_HAVE_FILES) && !defined(OF_NINTENDO_DS)
OFURI *writeURI;
#endif
module = @"OFINIFile";
URI = [OFURI URIWithString: @"objfw-embedded:///testfile.ini"];
TEST(@"+[fileWithURI:encoding:]",
(file = [OFINIFile fileWithURI: URI
encoding: OFStringEncodingCodepage437]))
tests = [file categoryForName: @"tests"];
foobar = [file categoryForName: @"foobar"];
types = [file categoryForName: @"types"];
|
|
|
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
OFArray *array;
#if defined(OF_HAVE_FILES) && !defined(OF_NINTENDO_DS)
OFURI *writeURI;
#endif
module = @"OFINIFile";
URI = [OFURI URIWithString: @"of-embedded:testfile.ini"];
TEST(@"+[fileWithURI:encoding:]",
(file = [OFINIFile fileWithURI: URI
encoding: OFStringEncodingCodepage437]))
tests = [file categoryForName: @"tests"];
foobar = [file categoryForName: @"foobar"];
types = [file categoryForName: @"types"];
|