[Newbies] TestFailure: Assertion failed in first practice from Squeak by Example

Eric Eisaman eric.eisaman at gmail.com
Mon Dec 10 21:28:41 UTC 2007


Yes, the shout method is defined in the String object.

Eric

On Dec 11, 2007 7:09 AM, stephane ducasse <stephane.ducasse at free.fr> wrote:

> Hi Eric
>
> On 10 déc. 07, at 21:48, Eric Eisaman wrote:
>
> > Hell Squeakers,
> >
> > At home I went through the first half of the Squeak by Example
> > book. The guided practice went without a hitch however, when I
> > worked through the first practice of writing a simple String method
> > at work, on a different image, I ran into this problem. Why am I
> > receiving an 'Assertion failed' message?
> >
> > testShout
> >  self assert: ('oh no' shout = 'OH NO!')
> >
>
> where the shout method is defined?
> In String?
>
> > shout
> >  ^ self asUppercase , '!'
> >
> > TestFailure: Assertion failed
> >
> > Regards,
> >
> > Eric Eisaman
> > _______________________________________________
> > Beginners mailing list
> > Beginners at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20071211/ea48b705/attachment.htm


More information about the Beginners mailing list