[Pharo-project] Issue 3966 in pharo: String>>lines misses tests

pharo at googlecode.com pharo at googlecode.com
Wed Apr 6 08:28:35 CEST 2011


Status: FixToInclude
Owner: damien.c... at gmail.com
Labels: Type-Patch Difficulty-Easy Importance-Low Milestone-1.2.2

New issue 3966 by damien.c... at gmail.com: 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').




More information about the Pharo-project mailing list