diff --git a/Tests/Foundation/CPAttributedStringTest.j b/Tests/Foundation/CPAttributedStringTest.j
index 43321a28c..fab444a57 100644
--- a/Tests/Foundation/CPAttributedStringTest.j
+++ b/Tests/Foundation/CPAttributedStringTest.j
@@ -629,6 +629,17 @@ var sharedObject = [CPObject new];
[self assertTrue:[[self stringForTesting] isEqual:string] message:"setAttributedString should have made strings equal, but they were not"];
}
+- (void)testReplaceAttributedString
+{
+ var string = [[CPMutableAttributedString alloc] initWithString:"HELLO
THERE"];
+ [string replaceOccurrencesOfString:"
"
+ withString:"