TestFailure: Assertion failed in first practice from Squeak by Example

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

TestFailure: Assertion failed in first practice from Squeak by Example

Jerome Peace
TestFailure: Assertion failed in first practice from
Squeak by Example

Hi Eric,

Check your white space.

There is a difference between 'oh no' and 'oh no '.
While its hard for me to tell if this is your problem
it is a common difficulty. And it will be easy for you
to eliminate it as a possibility.

Hth.

Yours incuriosity and service, --Jeorme Peace


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
***



      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: TestFailure: Assertion failed in first practice from Squeak by Example

Eric Eisaman
Hello Jerome,
 
I checked the white space and it was the same. I went and created numerous other String methods basically invoking existing methods and every test run seems to yield a signal failure causing the assertion to fail. I moved from the Cassou Dev Image to the OLPC Etoys Dev Image and made several of my own String methods and respective tests which all ran successfully. I don't know why my coding didn't work in both cases. Thanks for the time. Have a good day.
 
Regards,
 
Eric Eisaman
"Scratch yourself into Squeaking."


 
On Dec 12, 2007 4:46 AM, Jerome Peace <[hidden email]> wrote:
TestFailure: Assertion failed in first practice from
Squeak by Example

Hi Eric,

Check your white space.

There is a difference between 'oh no' and 'oh no '.
While its hard for me to tell if this is your problem
it is a common difficulty. And it will be easy for you
to eliminate it as a possibility.

Hth.

Yours incuriosity and service, --Jeorme Peace


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
***



     ____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.   http://tools.search.yahoo.com/newsearch/category.php?category=shopping
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners