NSMutableString*testString=[NSMutableStringstringWithString:@"The quick brown fox jumped over the other quick brown fox"];
//first make the string longer
[testStringreplaceOccurrencesOfString:@"brown"withString:@"kinda lime-green with a bit of ecru"options:NSLiteralSearch];
AISimplifiedAssertEqualObjects([NSMutableStringstringWithString:@"The quick kinda lime-green with a bit of ecru fox jumped over the other quick kinda lime-green with a bit of ecru fox"],
testString,
@"Modified string wasn't equal to hand-made modified string");
//next, try replacing something at the end; if the range didn't expand, this will fail
AISimplifiedAssertEqualObjects([NSMutableStringstringWithString:@"The quick kinda lime-green with a bit of ecru aardvark jumped over the other quick kinda lime-green with a bit of ecru aardvark"],
testString,
@"After making the string longer, modifications no longer took into account the full length");