Status: FixToInclude Owner: [email protected] Labels: Type-Patch Difficulty-Easy Importance-Low Milestone-1.2.2
New issue 3966 by [email protected]: String>>lines misses tests http://code.google.com/p/pharo/issues/detail?id=3966 I've written a simple test for String>>lines: testLines | sampleCRString sampleLFString sampleCRLFString | sampleCRString := 'Fred', String cr , 'the' , String cr , 'Bear'. sampleLFString := 'Fred', String lf , 'the' , String lf , 'Bear'. sampleCRLFString := 'Fred', String crlf , 'the' , String crlf , 'Bear'. self assert: sampleCRString lines = #('Fred' 'the' 'Bear'). self assert: sampleLFString lines = #('Fred' 'the' 'Bear'). self assert: sampleCRLFString lines = #('Fred' 'the' 'Bear').
