Hello Jerome, Thanks for the suggestion to Debug a little deeper. I will do that. I have since created numerous other methods with tests and received encouraging working results. Yey! Also, I greatly appreciate the bounty of resources available within the Squeak community. The *Squeak by Example* book and the FunSqueak image have recently provided me with some very beneficial information.
By next year I intend to have all my physics students traversing from Scratch to Etoys to Morphic and beyond. I first need to develop the appropriate physics simulations to be carried out and cross articulated among these various environments and their varying degrees of complexity. Have a wonderful day. Regards, Eric On Dec 20, 2007 6:24 PM, Jerome Peace <[EMAIL PROTECTED]> wrote: > [Newbies] TestFailure: Assertion failed in first > practice from Squeak by Example > > Hi Eric, > > You have and interesting one here. I tried your > example in both sq 7159 (3.10 basic) and in damiens sq > dev (sqdev7154-07.11.1) i.e the november version based > on sq 7154 basic. In both of those images the example > worked as the book said it would. > > So either you have found an obscure bug in an obscure > version or have made a typing error in the one you > tried. (If it were me I would suspect a typo but then > I have always been a creative typer. ;-) > > Of course the fun thing to do with an error is learn > how the debugger works. > > Open the debugger (from the test runner click on the > failed method testShout that will get the > pre-debugger. click on debug. select the line with > StringTest>>#testShout in it and play with it trying > to find a way to pinpoint the exact error. If you are > open to what you see, you are bound to learn something > that will increase your squeaking skills. Now that's > really learning Squeak by Example!* > > hth, > > Yours in curiosity and service, --Jerome Peace > > "There are no wrong answers only interesting results." > - > Seymour Papert (somewhat folk processed). I learned it > while learning Logo. > > Eric Eisaman eric.eisaman at gmail.com > Tue Dec 11 20:38:18 UTC 2007 > > 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." > http://scratch.mit.edu/users/eisaman > > > > On Dec 12, 2007 4:46 AM, Jerome Peace > <peace_the_dreamer at yahoo.com> 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 > > *** > > > > > > ____________________________________________________________________________________ > Never miss a thing. Make Yahoo your home page. > http://www.yahoo.com/r/hs > _______________________________________________ > Beginners mailing list > [email protected] > http://lists.squeakfoundation.org/mailman/listinfo/beginners >
_______________________________________________ Beginners mailing list [email protected] http://lists.squeakfoundation.org/mailman/listinfo/beginners
