[Seaside-dev] Re: [Seaside Commits] Seaside 3.0: Grease-Tests-Pharo-Core-jok.7.mcz

John O'Keefe wembley.instantiations at gmail.com
Mon Apr 19 20:37:26 UTC 2010


Sorry for the delay in responding -- this note got lost in the
blizzard of GSoC stuff.

GreaseCoreTests contains a lot of tests using unicode characters, so
why would this one be Pharo-specific?  Couldn't/Shouldn't it just be
added to GRPlatformTest>>#testConvertToSmalltalkNewlines if there is
some concern about newline conversion and unicode behaving badly
together?  I admit that I didn't even look to see if it was there -- I
assumed (badly) that it was.  I would be happy to put it there to
relieve the concern.

John

On Thu, Apr 15, 2010 at 4:26 PM, Lukas Renggli <renggli at gmail.com> wrote:
> I did not remove this method, because I was not sure if this method is
> really redundant to Pharo?
>
> >From what I understand this test checks if
> #testConvertToSmalltalkNewlines: can handle unicode characters beyond
> the byte-range (the euro symbol).
>
> Lukas
>
> On 16 April 2010 00:14,  <squeak-dev-noreply at lists.squeakfoundation.org> wrote:
>> John O'Keefe uploaded a new version of Grease-Tests-Pharo-Core to project Seaside 3.0:
>> http://www.squeaksource.com/Seaside30/Grease-Tests-Pharo-Core-jok.7.mcz
>>
>> ==================== Summary ====================
>>
>> Name: Grease-Tests-Pharo-Core-jok.7
>> Author: jok
>> Time: 15 April 2010, 4:13:48 pm
>> UUID: 427a0773-62f9-f04a-ac30-cbb8db7bc866
>> Ancestors: Grease-Tests-Pharo-Core-lr.6
>>
>> remove redundant #testConvertToSmalltalkNewlines
>>
>> =============== Diff against Grease-Tests-Pharo-Core-lr.6 ===============
>>
>> Item was removed:
>> - ----- Method: GRPharoPlatformTest>>testConvertToSmalltalkNewlines (in category 'tests') -----
>> - testConvertToSmalltalkNewlines
>> -       | expected euro |
>> -       expected := 'selector' , (String with: Character cr) , '"comment"'.
>> -       self assert: expected = (GRPlatform current convertToSmalltalkNewlines: expected).
>> -       self
>> -               assert:
>> -                       expected = (GRPlatform current convertToSmalltalkNewlines: 'selector' , (String with: Character lf) , '"comment"').
>> -       self
>> -               assert:
>> -                       expected
>> -                               =
>> -                                       (GRPlatform current
>> -                                               convertToSmalltalkNewlines: 'selector' , (String with: Character cr with: Character lf) , '"comment"').
>> -       euro := String with: (Character codePoint: 8364).
>> -       self assert: (expected , euro) = (GRPlatform current convertToSmalltalkNewlines: expected , euro).
>> -       self assert: (GRPlatform current convertToSmalltalkNewlines: nil) isNil!
>>
>>
>> _______________________________________________
>> commits mailing list
>> To unsubscribe, email commits-leave at lists.seaside.st
>> http://lists.seaside.st/listinfo/commits
>>
>
>
>
> --
> Lukas Renggli
> www.lukas-renggli.ch
> _______________________________________________
> seaside-dev mailing list
> seaside-dev at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
>



-- 
John O'Keefe [|], Principal Smalltalk Architect, Instantiations Inc.


More information about the seaside-dev mailing list