confirm: ... Smalltalk language conformity?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

confirm: ... Smalltalk language conformity?

stepken
Hi!

b := x confirm: [:a | (a >= 1) & (a <= 4)].

Fails in Pharo. Buggy in 3.10 ... hmmm, perhaps there should be better
unit tests ...

Is there any unit test out there, which tests for language conformity?

regards, Guido Stepken



_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: confirm: ... Smalltalk language conformity?

Stefan Schmiedl
On Sat, 25 Apr 2009 01:43:44 +0200
stepken <[hidden email]> wrote:

> Hi!
>
> b := x confirm: [:a | (a >= 1) & (a <= 4)].
>
> Fails in Pharo. Buggy in 3.10

What fails? The assignment?

s.

> ... hmmm, perhaps there should be
> better unit tests ...
>
> Is there any unit test out there, which tests for language conformity?
>

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: confirm: ... Smalltalk language conformity?

Oscar Nierstrasz

confirm: takes a test string as argument. Not a block.

This works just fine in Pharo:

b := x confirm: 'Do you really want to assign an uninitialized  
variable x to b?'

- on

On Apr 25, 2009, at 8:56, Stefan Schmiedl wrote:

> On Sat, 25 Apr 2009 01:43:44 +0200
> stepken <[hidden email]> wrote:
>
>> Hi!
>>
>> b := x confirm: [:a | (a >= 1) & (a <= 4)].
>>
>> Fails in Pharo. Buggy in 3.10
>
> What fails? The assignment?
>
> s.
>
>> ... hmmm, perhaps there should be
>> better unit tests ...
>>
>> Is there any unit test out there, which tests for language  
>> conformity?
>>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project