You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
XCTAssertEqual(visitor.reduceBreaklineInResultNSAttributedString(mutableAttributedString).string,"\nTest","Shoud only remove break line with attritube:reduceableBreakLine")
XCTAssertEqual(visitor.reduceBreaklineInResultNSAttributedString(mutableAttributedString).string,"Test","Shoud remove break line with attritube:reduceableBreakLine")
XCTAssertEqual(visitor.reduceBreaklineInResultNSAttributedString(mutableAttributedString).string,"Test\n","Shoud only remove break line with attritube:reduceableBreakLine")
XCTAssertEqual(visitor.reduceBreaklineInResultNSAttributedString(mutableAttributedString).string,"Test","Shoud remove break line with attritube:reduceableBreakLine")
mutableAttributedString.append(NSAttributedString(string:"\nTTTT\n\n")) // origin break line should not remove
81
-
mutableAttributedString.append(NSAttributedString(string:"AAAA\n\n", attributes:[.reduceableBreakLine:false])) // false reduceableBreakLine break line should not remove
82
-
83
-
mutableAttributedString.append(NSAttributedString(string:"\n\n\n\n\n", attributes:[.reduceableBreakLine:true])) // true reduceableBreakLine break line should replace to one \n
0 commit comments