Le lundi 22 mars 2010 à 00:36 +0100, Holger Hans Peter Freyther a écrit : > On Sunday 21 March 2010 21:58:57 Nicolas Petton wrote: > > Grease is not ready to use yet. Currently many tests fail, as I just > > imported code without really porting it, but I should have some time > > next week to work on that :) > > Awesome, I cloned your repository and use that as an oppurtunity to improve > my > Smalltalk knowledge. The below is an application of capitalized that makes us > pass some more tests, I will attempt to make GST pass the GRStringTests this > week.
Sorry, my master branch was ahead of the github repo by 3 commits... I pushed a simpler version of String>>capitalized. http://github.com/NicolasPetton/Grease/blob/master/Core/Extensions.st capitalized [ <category: '*Grease-GST-Core'> | capitalized | self isEmpty ifTrue: [^self]. capitalized := self copy. capitalized at: 1 put: (self at: 1) asUppercase. ^capitalized ] Cheers! Nico
signature.asc
Description: Ceci est une partie de message numériquement signée
_______________________________________________ help-smalltalk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-smalltalk
