@@ -19,10 +19,11 @@ #include #include #import "OFString.h" #import "OFArray.h" +#import "OFURL.h" #import "OFAutoreleasePool.h" #import "OFExceptions.h" #import "TestsAppDelegate.h" @@ -121,10 +122,16 @@ TEST(@"+[stringWithContentsOfFile:encoding]", (s[1] = [OFString stringWithContentsOfFile: @"testfile.txt" encoding: OF_STRING_ENCODING_ISO_8859_1]) && [s[1] isEqual: @"testäöü"]) + + TEST(@"+[stringWithContentsOfURL:encoding]", (s[1] = [OFString + stringWithContentsOfURL: [OFURL URLWithString: + @"file://testfile.txt"] + encoding: OF_STRING_ENCODING_ISO_8859_1]) && + [s[1] isEqual: @"testäöü"]) TEST(@"-[appendCStringWithLength:]", R([s[0] appendCString: "foobarqux" + 3 withLength: 3]) && [s[0] isEqual: @"foobar"])